@holmdigital/engine 2.3.1 → 2.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.
- package/README.md +4 -4
- package/dist/{chunk-MGIEQZMZ.mjs → chunk-FBGKWDZT.mjs} +1 -0
- package/dist/{chunk-2TQMD2NR.mjs → chunk-K7ZWJXHC.mjs} +15 -6
- package/dist/cli/index.js +15 -5
- package/dist/cli/index.mjs +2 -2
- package/dist/cli/templates/en-au.json +41 -0
- package/dist/cli/templates/en.json +6 -6
- package/dist/cli/templates/es.json +1 -1
- package/dist/cli/templates/fr.json +2 -2
- package/dist/cli/templates/it.json +1 -1
- package/dist/cli/templates/pl.json +1 -1
- package/dist/cli/templates/pt.json +1 -1
- package/dist/{i18n-6XB3K2PH.mjs → i18n-ZLEGILHH.mjs} +1 -1
- package/dist/index.js +15 -5
- package/dist/index.mjs +2 -2
- package/dist/templates/en-au.json +41 -0
- package/dist/templates/en.json +6 -6
- package/dist/templates/es.json +1 -1
- package/dist/templates/fr.json +2 -2
- package/dist/templates/it.json +1 -1
- package/dist/templates/pl.json +1 -1
- package/dist/templates/pt.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,16 +14,16 @@ 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, IT, PT, PL) for non-technical stakeholders.
|
|
17
|
+
3. **Reporting** in multiple languages (EN, SV, NO, FI, DA, NL, DE, FR, ES, IT, PT, PL, 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) and international laws (Australian DDA).
|
|
25
25
|
- **HTML Structure Validation**: Built-in `html-validate` checks to prevent false positives/negatives.
|
|
26
|
-
- **Internationalization (i18n)**: Comprehensive support for
|
|
26
|
+
- **Internationalization (i18n)**: Comprehensive support for 13 languages: English (`en`), Swedish (`sv`), Norwegian (`no`), Finnish (`fi`), Danish (`da`), German (`de`), French (`fr`), Spanish (`es`), Dutch (`nl`), Italian (`it`), Portuguese (`pt`), Polish (`pl`), and Australian English (`en-au`).
|
|
27
27
|
- **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
28
|
- **Multi-Company Metadata**: Easily customize statements via CLI flags or `.a11yrc` for scalable client generation.
|
|
29
29
|
- **Enriched JUnit XML**: Professional CI/CD reports including scan duration, page title, engine metadata, and **detailed failing node** snippets (Target + HTML).
|
|
@@ -60,7 +60,7 @@ npx hd-a11y-scan <url> [options]
|
|
|
60
60
|
| `--phone <number>` | Contact phone for the statement metadata |
|
|
61
61
|
| `--response-time <val>` | Response time for the statement metadata |
|
|
62
62
|
| `--publish-date <date>` | Publish date for the website (YYYY-MM-DD) |
|
|
63
|
-
| `--country <code>` | Country code for enforcement body (`SE`, `NO`, `DE`, `IT`, `PT`, `PL`, etc.) |
|
|
63
|
+
| `--country <code>` | Country code for enforcement body (`SE`, `NO`, `DE`, `IT`, `PT`, `PL`, `AU`, etc.) |
|
|
64
64
|
| `--sector <type>` | Sector type: `public` (WAD) or `private` (EAA). Default: `public` |
|
|
65
65
|
| `--viewport <size>` | Set viewport size (`mobile`, `tablet`, `desktop`, or custom `1024x768`) |
|
|
66
66
|
| `--generate-tests` | Generate Pseudo-Automation tests |
|
|
@@ -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.4.0";
|
|
142
142
|
}
|
|
143
143
|
function getStandardsVersion() {
|
|
144
144
|
try {
|
|
@@ -323,7 +323,7 @@ var RegulatoryScanner = class {
|
|
|
323
323
|
async enrichResults(axeResults) {
|
|
324
324
|
const reports = [];
|
|
325
325
|
const { searchRulesByTags, generateRegulatoryReport, getConvergenceRule } = await import("@holmdigital/standards");
|
|
326
|
-
const { getCurrentLang } = await import("./i18n-
|
|
326
|
+
const { getCurrentLang } = await import("./i18n-ZLEGILHH.mjs");
|
|
327
327
|
const lang = getCurrentLang();
|
|
328
328
|
for (const violation of axeResults.violations) {
|
|
329
329
|
let report = generateRegulatoryReport(violation.id, lang);
|
|
@@ -563,7 +563,8 @@ var EVALUATION_METHOD = {
|
|
|
563
563
|
pl: "Automatyczne skanowanie za pomoc\u0105 @holmdigital/engine",
|
|
564
564
|
"en-gb": "Automated scan via @holmdigital/engine",
|
|
565
565
|
"en-us": "Automated scan via @holmdigital/engine",
|
|
566
|
-
"en-ca": "Automated scan via @holmdigital/engine"
|
|
566
|
+
"en-ca": "Automated scan via @holmdigital/engine",
|
|
567
|
+
"en-au": "Automated scan via @holmdigital/engine"
|
|
567
568
|
};
|
|
568
569
|
var STATUS_LABELS = {
|
|
569
570
|
sv: { full: "Fullt ut f\xF6renlig", partial: "Delvis f\xF6renlig", "non-compliant": "Inte f\xF6renlig" },
|
|
@@ -581,7 +582,8 @@ var STATUS_LABELS = {
|
|
|
581
582
|
pl: { full: "W pe\u0142ni zgodny", partial: "Cz\u0119\u015Bciowo zgodny", "non-compliant": "Niezgodny" },
|
|
582
583
|
"en-gb": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
583
584
|
"en-us": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
584
|
-
"en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
|
|
585
|
+
"en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
586
|
+
"en-au": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
|
|
585
587
|
};
|
|
586
588
|
var RESPONSE_TIME_DEFAULT = {
|
|
587
589
|
sv: "2 dagar",
|
|
@@ -599,7 +601,8 @@ var RESPONSE_TIME_DEFAULT = {
|
|
|
599
601
|
pl: "2 dni",
|
|
600
602
|
"en-gb": "2 days",
|
|
601
603
|
"en-us": "2 days",
|
|
602
|
-
"en-ca": "2 days"
|
|
604
|
+
"en-ca": "2 days",
|
|
605
|
+
"en-au": "2 days"
|
|
603
606
|
};
|
|
604
607
|
async function generateStatementContent(result, lang = "en", format = "html", metadata) {
|
|
605
608
|
const templatePath = path.join(__dirname, "templates", `${lang}.json`);
|
|
@@ -644,7 +647,8 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
644
647
|
"pl": "PL",
|
|
645
648
|
"uk": "GB",
|
|
646
649
|
"us": "US",
|
|
647
|
-
"ca": "CA"
|
|
650
|
+
"ca": "CA",
|
|
651
|
+
"au": "AU"
|
|
648
652
|
};
|
|
649
653
|
try {
|
|
650
654
|
const hostname = new URL(result.url).hostname;
|
|
@@ -788,9 +792,14 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
788
792
|
"{<third party>}": props.generatorTool?.name || "HolmDigital Engine",
|
|
789
793
|
"{<enforcement_body>}": getEnforcementBody(country, sector),
|
|
790
794
|
"{<national_law>}": (() => {
|
|
795
|
+
if (country === "AU") {
|
|
796
|
+
const ddaLaw = getNationalLawByFramework("DDA", "AU");
|
|
797
|
+
return ddaLaw ? `${ddaLaw.fullName}` : "Disability Discrimination Act 1992 (Cth)";
|
|
798
|
+
}
|
|
791
799
|
const law = getNationalLawByFramework(sector === "private" ? "EAA" : "WAD", country);
|
|
792
800
|
return law ? `${law.fullName} (${law.law})` : "";
|
|
793
801
|
})(),
|
|
802
|
+
"{<ahrc_url>}": "https://www.humanrights.gov.au/complaints",
|
|
794
803
|
"{<brister>}": nonComplianceItems.length > 0 ? nonComplianceItems.map((item) => `* ${item}`).join("\n") : lang === "sv" ? "Inga k\xE4nda brister." : "No known issues.",
|
|
795
804
|
"{<puutteet>}": nonComplianceItems.length > 0 ? nonComplianceItems.map((item) => `* ${item}`).join("\n") : lang === "fi" ? "Ei tiedossa olevia puutteita." : "No known issues.",
|
|
796
805
|
"{<gebreken>}": nonComplianceItems.length > 0 ? nonComplianceItems.map((item) => `* ${item}`).join("\n") : lang === "nl" ? "Geen bekende gebreken." : "No known issues.",
|
package/dist/cli/index.js
CHANGED
|
@@ -514,6 +514,7 @@ var init_i18n = __esm({
|
|
|
514
514
|
"en-gb": en_default,
|
|
515
515
|
"en-us": en_default,
|
|
516
516
|
"en-ca": en_default,
|
|
517
|
+
"en-au": en_default,
|
|
517
518
|
"da": dk_default,
|
|
518
519
|
"nb": no_default
|
|
519
520
|
// Norwegian Bokmål alias
|
|
@@ -782,7 +783,7 @@ var HtmlValidator = class {
|
|
|
782
783
|
// src/core/regulatory-scanner.ts
|
|
783
784
|
var import_node_fs = require("fs");
|
|
784
785
|
function getEngineVersion() {
|
|
785
|
-
return "2.
|
|
786
|
+
return "2.4.0";
|
|
786
787
|
}
|
|
787
788
|
function getStandardsVersion() {
|
|
788
789
|
try {
|
|
@@ -1547,7 +1548,8 @@ var EVALUATION_METHOD = {
|
|
|
1547
1548
|
pl: "Automatyczne skanowanie za pomoc\u0105 @holmdigital/engine",
|
|
1548
1549
|
"en-gb": "Automated scan via @holmdigital/engine",
|
|
1549
1550
|
"en-us": "Automated scan via @holmdigital/engine",
|
|
1550
|
-
"en-ca": "Automated scan via @holmdigital/engine"
|
|
1551
|
+
"en-ca": "Automated scan via @holmdigital/engine",
|
|
1552
|
+
"en-au": "Automated scan via @holmdigital/engine"
|
|
1551
1553
|
};
|
|
1552
1554
|
var STATUS_LABELS = {
|
|
1553
1555
|
sv: { full: "Fullt ut f\xF6renlig", partial: "Delvis f\xF6renlig", "non-compliant": "Inte f\xF6renlig" },
|
|
@@ -1565,7 +1567,8 @@ var STATUS_LABELS = {
|
|
|
1565
1567
|
pl: { full: "W pe\u0142ni zgodny", partial: "Cz\u0119\u015Bciowo zgodny", "non-compliant": "Niezgodny" },
|
|
1566
1568
|
"en-gb": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
1567
1569
|
"en-us": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
1568
|
-
"en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
|
|
1570
|
+
"en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
1571
|
+
"en-au": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
|
|
1569
1572
|
};
|
|
1570
1573
|
var RESPONSE_TIME_DEFAULT = {
|
|
1571
1574
|
sv: "2 dagar",
|
|
@@ -1583,7 +1586,8 @@ var RESPONSE_TIME_DEFAULT = {
|
|
|
1583
1586
|
pl: "2 dni",
|
|
1584
1587
|
"en-gb": "2 days",
|
|
1585
1588
|
"en-us": "2 days",
|
|
1586
|
-
"en-ca": "2 days"
|
|
1589
|
+
"en-ca": "2 days",
|
|
1590
|
+
"en-au": "2 days"
|
|
1587
1591
|
};
|
|
1588
1592
|
async function generateStatementContent(result, lang = "en", format = "html", metadata) {
|
|
1589
1593
|
const templatePath = import_path.default.join(__dirname, "templates", `${lang}.json`);
|
|
@@ -1628,7 +1632,8 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
1628
1632
|
"pl": "PL",
|
|
1629
1633
|
"uk": "GB",
|
|
1630
1634
|
"us": "US",
|
|
1631
|
-
"ca": "CA"
|
|
1635
|
+
"ca": "CA",
|
|
1636
|
+
"au": "AU"
|
|
1632
1637
|
};
|
|
1633
1638
|
try {
|
|
1634
1639
|
const hostname = new URL(result.url).hostname;
|
|
@@ -1772,9 +1777,14 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
1772
1777
|
"{<third party>}": props.generatorTool?.name || "HolmDigital Engine",
|
|
1773
1778
|
"{<enforcement_body>}": (0, import_standards.getEnforcementBody)(country, sector),
|
|
1774
1779
|
"{<national_law>}": (() => {
|
|
1780
|
+
if (country === "AU") {
|
|
1781
|
+
const ddaLaw = (0, import_standards.getNationalLawByFramework)("DDA", "AU");
|
|
1782
|
+
return ddaLaw ? `${ddaLaw.fullName}` : "Disability Discrimination Act 1992 (Cth)";
|
|
1783
|
+
}
|
|
1775
1784
|
const law = (0, import_standards.getNationalLawByFramework)(sector === "private" ? "EAA" : "WAD", country);
|
|
1776
1785
|
return law ? `${law.fullName} (${law.law})` : "";
|
|
1777
1786
|
})(),
|
|
1787
|
+
"{<ahrc_url>}": "https://www.humanrights.gov.au/complaints",
|
|
1778
1788
|
"{<brister>}": nonComplianceItems.length > 0 ? nonComplianceItems.map((item) => `* ${item}`).join("\n") : lang === "sv" ? "Inga k\xE4nda brister." : "No known issues.",
|
|
1779
1789
|
"{<puutteet>}": nonComplianceItems.length > 0 ? nonComplianceItems.map((item) => `* ${item}`).join("\n") : lang === "fi" ? "Ei tiedossa olevia puutteita." : "No known issues.",
|
|
1780
1790
|
"{<gebreken>}": nonComplianceItems.length > 0 ? nonComplianceItems.map((item) => `* ${item}`).join("\n") : lang === "nl" ? "Geen bekende gebreken." : "No known issues.",
|
package/dist/cli/index.mjs
CHANGED
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
generateStatement,
|
|
8
8
|
generateStatementContent,
|
|
9
9
|
getEngineVersion
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-K7ZWJXHC.mjs";
|
|
11
11
|
import {
|
|
12
12
|
getCurrentLang,
|
|
13
13
|
setLanguage,
|
|
14
14
|
t
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-FBGKWDZT.mjs";
|
|
16
16
|
import "../chunk-DIBTSSLZ.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/index.ts
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Accessibility of {<website>}",
|
|
3
|
+
"intro": "This statement describes how {<organisation>} addresses accessibility under the {<national_law>}. {<organisation>} is committed to ensuring its website is accessible to people with disability in accordance with WCAG 2.2 Level AA, as recommended by the {<enforcement_body>}.",
|
|
4
|
+
"sections": [
|
|
5
|
+
{
|
|
6
|
+
"id": "how-accessible",
|
|
7
|
+
"title": "How accessible is this website?",
|
|
8
|
+
"content": "{There are no known accessibility issues with this website./We know some parts of this website are not fully accessible. See the section on known accessibility barriers below for more information./This website has significant accessibility barriers. See the section on known accessibility barriers below for more information.}"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "what-to-do",
|
|
12
|
+
"title": "What to do if you experience accessibility issues",
|
|
13
|
+
"content": "If you experience difficulty accessing any part of this website, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us:\n\n* by email: {<email address>}\n* by phone: {<telephone number>}]"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "reporting",
|
|
17
|
+
"title": "Reporting accessibility problems",
|
|
18
|
+
"content": "We are always working to improve the accessibility of this website. If you find a problem that is not listed on this page, or if you believe we are not meeting the requirements described here, please contact us.\n\nIf you are not satisfied with our response, you may lodge a complaint with the {<enforcement_body>} under the {<national_law>}. The AHRC complaint form is available at {<ahrc_url>}."
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "non-accessible",
|
|
22
|
+
"title": "Known accessibility barriers",
|
|
23
|
+
"content": "[\n{<issues>}\n]"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "wcag-conformance",
|
|
27
|
+
"title": "Technical information about accessibility",
|
|
28
|
+
"content": "{This website is fully compliant with WCAG 2.2 Level AA./This website is partially compliant with WCAG 2.2 Level AA, due to the barriers listed above./This website is not compliant with WCAG 2.2 Level AA. The known barriers are listed above.}\n\nWCAG 2.2 Level AA is the standard recommended by the {<enforcement_body>} under the {<national_law>}."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "dta-policy",
|
|
32
|
+
"title": "Australian Government digital policy",
|
|
33
|
+
"content": "Federal government agencies are subject to the Digital Transformation Agency (DTA) Digital Experience Policy, which has included the Digital Inclusion Standard since 1 January 2025 for new services and 1 July 2025 for existing services. The Digital Inclusion Standard requires Commonwealth agencies to meet WCAG 2.2 Level AA.\n\nThis statement was prepared in accordance with best practice guidance from the DTA and the Australian Human Rights Commission (AHRC)."
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "testing",
|
|
37
|
+
"title": "How we tested this website",
|
|
38
|
+
"content": "{We have performed a self-assessment (internal testing) of {<website>}./{<third party>} has tested {<website>}./We have estimated the accessibility without testing.}\n\nThe last assessment was made on {<assessment date>}.\n\n[Assessment method: {<method>}]\n\nThe statement was last updated on {<update date>}."
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
@@ -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",
|
|
@@ -10,25 +10,25 @@
|
|
|
10
10
|
{
|
|
11
11
|
"id": "what-to-do",
|
|
12
12
|
"title": "What to do if you can’t access parts of this website?",
|
|
13
|
-
"content": "If you need content from this website that is not accessible for you, but is not within the scope of
|
|
13
|
+
"content": "If you need content from this website that is not accessible for you, but is not within the scope of {<national_law>} as described below, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us in the following ways:\n\n* email {<email address>}\n* call {<telephone number>}]"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"id": "reporting",
|
|
17
17
|
"title": "Reporting accessibility problems with this website",
|
|
18
|
-
"content": "We’re always looking to improve the accessibility of this website. If you find any problems that aren’t listed on this page or if we’re not meeting the requirements of
|
|
18
|
+
"content": "We’re always looking to improve the accessibility of this website. If you find any problems that aren’t listed on this page or if we’re not meeting the requirements of {<national_law>}, contact us and let us know about the problem."
|
|
19
19
|
},
|
|
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 submit a complaint to {<enforcement_body>} if you think that our assessment of what constitutes a disproportionate burden should be reviewed, if you think that our accessibility statement is inadequate, or if you think that your request for excluded content in an accessible format has not been handled correctly."
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
|
27
27
|
"title": "Technical information about this website’s accessibility",
|
|
28
|
-
"content": "{This website is fully compliant with
|
|
28
|
+
"content": "{This website is fully compliant with {<national_law>}./This website is partially compliant with {<national_law>}, due to the non-compliances listed below./This website is not compliant with {<national_law>}. The non-accessible sections are listed below.}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
"content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with
|
|
31
|
+
"content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with {<national_law>}**\n\n{<issues>}\n]"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"id": "testing",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
|
27
27
|
"title": "Información técnica sobre la accesibilidad del sitio web",
|
|
28
|
-
"content": "{Este sitio web es plenamente conforme./Este sitio web es parcialmente conforme debido a las deficiencias descritas a continuación./Este sitio web no es conforme.}"
|
|
28
|
+
"content": "{Este sitio web es plenamente conforme con {<national_law>}./Este sitio web es parcialmente conforme con {<national_law>} debido a las deficiencias descritas a continuación./Este sitio web no es conforme con {<national_law>}.}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "testing",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
{
|
|
21
21
|
"id": "enforcement",
|
|
22
22
|
"title": "Voies de recours",
|
|
23
|
-
"content": "Le {<enforcement_body>} est responsable du contrôle de la conformité aux exigences
|
|
23
|
+
"content": "Le {<enforcement_body>} est responsable du contrôle de la conformité aux exigences de {<national_law>}. Si vous ne recevez pas de réponse satisfaisante à votre signalement, vous pouvez contacter {<enforcement_body>}.\n\nVous pouvez également déposer une plainte auprès de {<enforcement_body>} si vous estimez que notre évaluation de la charge disproportionnée doit être revue, si vous constatez des défauts dans notre déclaration d'accessibilité ou si vous estimez que nous n'avons pas traité correctement votre demande de mise en accessibilité."
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
|
27
27
|
"title": "Informations techniques sur l'accessibilité du site",
|
|
28
|
-
"content": "{Ce site est totalement conforme./Ce site est partiellement conforme en raison des défauts décrits ci-dessous./Ce site n'est pas conforme.}"
|
|
28
|
+
"content": "{Ce site est totalement conforme avec {<national_law>}./Ce site est partiellement conforme avec {<national_law>} en raison des défauts décrits ci-dessous./Ce site n'est pas conforme avec {<national_law>}.}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "testing",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
|
27
27
|
"title": "Informazioni tecniche sull'accessibilità del sito web",
|
|
28
|
-
"content": "{Questo sito web è pienamente conforme./Questo sito web è parzialmente conforme a causa delle carenze descritte di seguito./Questo sito web non è conforme.}"
|
|
28
|
+
"content": "{Questo sito web è pienamente conforme a {<national_law>}./Questo sito web è parzialmente conforme a {<national_law>} a causa delle carenze descritte di seguito./Questo sito web non è conforme a {<national_law>}.}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "testing",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
|
27
27
|
"title": "Informacje techniczne o dostępności strony internetowej",
|
|
28
|
-
"content": "{Ta strona internetowa jest w pełni zgodna./Ta strona internetowa jest częściowo zgodna z powodu niedociągnięć opisanych poniżej./Ta strona internetowa nie jest zgodna.}"
|
|
28
|
+
"content": "{Ta strona internetowa jest w pełni zgodna z {<national_law>}./Ta strona internetowa jest częściowo zgodna z {<national_law>} z powodu niedociągnięć opisanych poniżej./Ta strona internetowa nie jest zgodna z {<national_law>}.}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "testing",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
|
27
27
|
"title": "Informações técnicas sobre a acessibilidade do sítio web",
|
|
28
|
-
"content": "{Este sítio web está totalmente em conformidade./Este sítio web está parcialmente em conformidade devido às deficiências descritas abaixo./Este sítio web não está em conformidade.}"
|
|
28
|
+
"content": "{Este sítio web está totalmente em conformidade com {<national_law>}./Este sítio web está parcialmente em conformidade com {<national_law>} devido às deficiências descritas abaixo./Este sítio web não está em conformidade com {<national_law>}.}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "testing",
|
package/dist/index.js
CHANGED
|
@@ -514,6 +514,7 @@ var init_i18n = __esm({
|
|
|
514
514
|
"en-gb": en_default,
|
|
515
515
|
"en-us": en_default,
|
|
516
516
|
"en-ca": en_default,
|
|
517
|
+
"en-au": en_default,
|
|
517
518
|
"da": dk_default,
|
|
518
519
|
"nb": no_default
|
|
519
520
|
// Norwegian Bokmål alias
|
|
@@ -676,7 +677,7 @@ var HtmlValidator = class {
|
|
|
676
677
|
// src/core/regulatory-scanner.ts
|
|
677
678
|
var import_node_fs = require("fs");
|
|
678
679
|
function getEngineVersion() {
|
|
679
|
-
return "2.
|
|
680
|
+
return "2.4.0";
|
|
680
681
|
}
|
|
681
682
|
function getStandardsVersion() {
|
|
682
683
|
try {
|
|
@@ -1102,7 +1103,8 @@ var EVALUATION_METHOD = {
|
|
|
1102
1103
|
pl: "Automatyczne skanowanie za pomoc\u0105 @holmdigital/engine",
|
|
1103
1104
|
"en-gb": "Automated scan via @holmdigital/engine",
|
|
1104
1105
|
"en-us": "Automated scan via @holmdigital/engine",
|
|
1105
|
-
"en-ca": "Automated scan via @holmdigital/engine"
|
|
1106
|
+
"en-ca": "Automated scan via @holmdigital/engine",
|
|
1107
|
+
"en-au": "Automated scan via @holmdigital/engine"
|
|
1106
1108
|
};
|
|
1107
1109
|
var STATUS_LABELS = {
|
|
1108
1110
|
sv: { full: "Fullt ut f\xF6renlig", partial: "Delvis f\xF6renlig", "non-compliant": "Inte f\xF6renlig" },
|
|
@@ -1120,7 +1122,8 @@ var STATUS_LABELS = {
|
|
|
1120
1122
|
pl: { full: "W pe\u0142ni zgodny", partial: "Cz\u0119\u015Bciowo zgodny", "non-compliant": "Niezgodny" },
|
|
1121
1123
|
"en-gb": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
1122
1124
|
"en-us": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
1123
|
-
"en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
|
|
1125
|
+
"en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
|
|
1126
|
+
"en-au": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
|
|
1124
1127
|
};
|
|
1125
1128
|
var RESPONSE_TIME_DEFAULT = {
|
|
1126
1129
|
sv: "2 dagar",
|
|
@@ -1138,7 +1141,8 @@ var RESPONSE_TIME_DEFAULT = {
|
|
|
1138
1141
|
pl: "2 dni",
|
|
1139
1142
|
"en-gb": "2 days",
|
|
1140
1143
|
"en-us": "2 days",
|
|
1141
|
-
"en-ca": "2 days"
|
|
1144
|
+
"en-ca": "2 days",
|
|
1145
|
+
"en-au": "2 days"
|
|
1142
1146
|
};
|
|
1143
1147
|
async function generateStatementContent(result, lang = "en", format = "html", metadata) {
|
|
1144
1148
|
const templatePath = import_path.default.join(__dirname, "templates", `${lang}.json`);
|
|
@@ -1183,7 +1187,8 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
1183
1187
|
"pl": "PL",
|
|
1184
1188
|
"uk": "GB",
|
|
1185
1189
|
"us": "US",
|
|
1186
|
-
"ca": "CA"
|
|
1190
|
+
"ca": "CA",
|
|
1191
|
+
"au": "AU"
|
|
1187
1192
|
};
|
|
1188
1193
|
try {
|
|
1189
1194
|
const hostname = new URL(result.url).hostname;
|
|
@@ -1327,9 +1332,14 @@ async function generateStatementContent(result, lang = "en", format = "html", me
|
|
|
1327
1332
|
"{<third party>}": props.generatorTool?.name || "HolmDigital Engine",
|
|
1328
1333
|
"{<enforcement_body>}": (0, import_standards.getEnforcementBody)(country, sector),
|
|
1329
1334
|
"{<national_law>}": (() => {
|
|
1335
|
+
if (country === "AU") {
|
|
1336
|
+
const ddaLaw = (0, import_standards.getNationalLawByFramework)("DDA", "AU");
|
|
1337
|
+
return ddaLaw ? `${ddaLaw.fullName}` : "Disability Discrimination Act 1992 (Cth)";
|
|
1338
|
+
}
|
|
1330
1339
|
const law = (0, import_standards.getNationalLawByFramework)(sector === "private" ? "EAA" : "WAD", country);
|
|
1331
1340
|
return law ? `${law.fullName} (${law.law})` : "";
|
|
1332
1341
|
})(),
|
|
1342
|
+
"{<ahrc_url>}": "https://www.humanrights.gov.au/complaints",
|
|
1333
1343
|
"{<brister>}": nonComplianceItems.length > 0 ? nonComplianceItems.map((item) => `* ${item}`).join("\n") : lang === "sv" ? "Inga k\xE4nda brister." : "No known issues.",
|
|
1334
1344
|
"{<puutteet>}": nonComplianceItems.length > 0 ? nonComplianceItems.map((item) => `* ${item}`).join("\n") : lang === "fi" ? "Ei tiedossa olevia puutteita." : "No known issues.",
|
|
1335
1345
|
"{<gebreken>}": nonComplianceItems.length > 0 ? nonComplianceItems.map((item) => `* ${item}`).join("\n") : lang === "nl" ? "Geen bekende gebreken." : "No known issues.",
|
package/dist/index.mjs
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
generateStatement,
|
|
6
6
|
generateStatementContent,
|
|
7
7
|
getEngineVersion
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-K7ZWJXHC.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getCurrentLang,
|
|
11
11
|
setLanguage,
|
|
12
12
|
t
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-FBGKWDZT.mjs";
|
|
14
14
|
import "./chunk-DIBTSSLZ.mjs";
|
|
15
15
|
export {
|
|
16
16
|
PseudoAutomationEngine,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Accessibility of {<website>}",
|
|
3
|
+
"intro": "This statement describes how {<organisation>} addresses accessibility under the {<national_law>}. {<organisation>} is committed to ensuring its website is accessible to people with disability in accordance with WCAG 2.2 Level AA, as recommended by the {<enforcement_body>}.",
|
|
4
|
+
"sections": [
|
|
5
|
+
{
|
|
6
|
+
"id": "how-accessible",
|
|
7
|
+
"title": "How accessible is this website?",
|
|
8
|
+
"content": "{There are no known accessibility issues with this website./We know some parts of this website are not fully accessible. See the section on known accessibility barriers below for more information./This website has significant accessibility barriers. See the section on known accessibility barriers below for more information.}"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "what-to-do",
|
|
12
|
+
"title": "What to do if you experience accessibility issues",
|
|
13
|
+
"content": "If you experience difficulty accessing any part of this website, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us:\n\n* by email: {<email address>}\n* by phone: {<telephone number>}]"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "reporting",
|
|
17
|
+
"title": "Reporting accessibility problems",
|
|
18
|
+
"content": "We are always working to improve the accessibility of this website. If you find a problem that is not listed on this page, or if you believe we are not meeting the requirements described here, please contact us.\n\nIf you are not satisfied with our response, you may lodge a complaint with the {<enforcement_body>} under the {<national_law>}. The AHRC complaint form is available at {<ahrc_url>}."
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "non-accessible",
|
|
22
|
+
"title": "Known accessibility barriers",
|
|
23
|
+
"content": "[\n{<issues>}\n]"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "wcag-conformance",
|
|
27
|
+
"title": "Technical information about accessibility",
|
|
28
|
+
"content": "{This website is fully compliant with WCAG 2.2 Level AA./This website is partially compliant with WCAG 2.2 Level AA, due to the barriers listed above./This website is not compliant with WCAG 2.2 Level AA. The known barriers are listed above.}\n\nWCAG 2.2 Level AA is the standard recommended by the {<enforcement_body>} under the {<national_law>}."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "dta-policy",
|
|
32
|
+
"title": "Australian Government digital policy",
|
|
33
|
+
"content": "Federal government agencies are subject to the Digital Transformation Agency (DTA) Digital Experience Policy, which has included the Digital Inclusion Standard since 1 January 2025 for new services and 1 July 2025 for existing services. The Digital Inclusion Standard requires Commonwealth agencies to meet WCAG 2.2 Level AA.\n\nThis statement was prepared in accordance with best practice guidance from the DTA and the Australian Human Rights Commission (AHRC)."
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "testing",
|
|
37
|
+
"title": "How we tested this website",
|
|
38
|
+
"content": "{We have performed a self-assessment (internal testing) of {<website>}./{<third party>} has tested {<website>}./We have estimated the accessibility without testing.}\n\nThe last assessment was made on {<assessment date>}.\n\n[Assessment method: {<method>}]\n\nThe statement was last updated on {<update date>}."
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
package/dist/templates/en.json
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",
|
|
@@ -10,25 +10,25 @@
|
|
|
10
10
|
{
|
|
11
11
|
"id": "what-to-do",
|
|
12
12
|
"title": "What to do if you can’t access parts of this website?",
|
|
13
|
-
"content": "If you need content from this website that is not accessible for you, but is not within the scope of
|
|
13
|
+
"content": "If you need content from this website that is not accessible for you, but is not within the scope of {<national_law>} as described below, please contact us.\n\n[Our normal response time is {<response time>}.]\n\n[You can also contact us in the following ways:\n\n* email {<email address>}\n* call {<telephone number>}]"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"id": "reporting",
|
|
17
17
|
"title": "Reporting accessibility problems with this website",
|
|
18
|
-
"content": "We’re always looking to improve the accessibility of this website. If you find any problems that aren’t listed on this page or if we’re not meeting the requirements of
|
|
18
|
+
"content": "We’re always looking to improve the accessibility of this website. If you find any problems that aren’t listed on this page or if we’re not meeting the requirements of {<national_law>}, contact us and let us know about the problem."
|
|
19
19
|
},
|
|
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 submit a complaint to {<enforcement_body>} if you think that our assessment of what constitutes a disproportionate burden should be reviewed, if you think that our accessibility statement is inadequate, or if you think that your request for excluded content in an accessible format has not been handled correctly."
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
|
27
27
|
"title": "Technical information about this website’s accessibility",
|
|
28
|
-
"content": "{This website is fully compliant with
|
|
28
|
+
"content": "{This website is fully compliant with {<national_law>}./This website is partially compliant with {<national_law>}, due to the non-compliances listed below./This website is not compliant with {<national_law>}. The non-accessible sections are listed below.}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
"content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with
|
|
31
|
+
"content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with {<national_law>}**\n\n{<issues>}\n]"
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"id": "testing",
|
package/dist/templates/es.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
|
27
27
|
"title": "Información técnica sobre la accesibilidad del sitio web",
|
|
28
|
-
"content": "{Este sitio web es plenamente conforme./Este sitio web es parcialmente conforme debido a las deficiencias descritas a continuación./Este sitio web no es conforme.}"
|
|
28
|
+
"content": "{Este sitio web es plenamente conforme con {<national_law>}./Este sitio web es parcialmente conforme con {<national_law>} debido a las deficiencias descritas a continuación./Este sitio web no es conforme con {<national_law>}.}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "testing",
|
package/dist/templates/fr.json
CHANGED
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
{
|
|
21
21
|
"id": "enforcement",
|
|
22
22
|
"title": "Voies de recours",
|
|
23
|
-
"content": "Le {<enforcement_body>} est responsable du contrôle de la conformité aux exigences
|
|
23
|
+
"content": "Le {<enforcement_body>} est responsable du contrôle de la conformité aux exigences de {<national_law>}. Si vous ne recevez pas de réponse satisfaisante à votre signalement, vous pouvez contacter {<enforcement_body>}.\n\nVous pouvez également déposer une plainte auprès de {<enforcement_body>} si vous estimez que notre évaluation de la charge disproportionnée doit être revue, si vous constatez des défauts dans notre déclaration d'accessibilité ou si vous estimez que nous n'avons pas traité correctement votre demande de mise en accessibilité."
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
|
27
27
|
"title": "Informations techniques sur l'accessibilité du site",
|
|
28
|
-
"content": "{Ce site est totalement conforme./Ce site est partiellement conforme en raison des défauts décrits ci-dessous./Ce site n'est pas conforme.}"
|
|
28
|
+
"content": "{Ce site est totalement conforme avec {<national_law>}./Ce site est partiellement conforme avec {<national_law>} en raison des défauts décrits ci-dessous./Ce site n'est pas conforme avec {<national_law>}.}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "testing",
|
package/dist/templates/it.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
|
27
27
|
"title": "Informazioni tecniche sull'accessibilità del sito web",
|
|
28
|
-
"content": "{Questo sito web è pienamente conforme./Questo sito web è parzialmente conforme a causa delle carenze descritte di seguito./Questo sito web non è conforme.}"
|
|
28
|
+
"content": "{Questo sito web è pienamente conforme a {<national_law>}./Questo sito web è parzialmente conforme a {<national_law>} a causa delle carenze descritte di seguito./Questo sito web non è conforme a {<national_law>}.}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "testing",
|
package/dist/templates/pl.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
|
27
27
|
"title": "Informacje techniczne o dostępności strony internetowej",
|
|
28
|
-
"content": "{Ta strona internetowa jest w pełni zgodna./Ta strona internetowa jest częściowo zgodna z powodu niedociągnięć opisanych poniżej./Ta strona internetowa nie jest zgodna.}"
|
|
28
|
+
"content": "{Ta strona internetowa jest w pełni zgodna z {<national_law>}./Ta strona internetowa jest częściowo zgodna z {<national_law>} z powodu niedociągnięć opisanych poniżej./Ta strona internetowa nie jest zgodna z {<national_law>}.}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "testing",
|
package/dist/templates/pt.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"id": "technical",
|
|
27
27
|
"title": "Informações técnicas sobre a acessibilidade do sítio web",
|
|
28
|
-
"content": "{Este sítio web está totalmente em conformidade./Este sítio web está parcialmente em conformidade devido às deficiências descritas abaixo./Este sítio web não está em conformidade.}"
|
|
28
|
+
"content": "{Este sítio web está totalmente em conformidade com {<national_law>}./Este sítio web está parcialmente em conformidade com {<national_law>} devido às deficiências descritas abaixo./Este sítio web não está em conformidade com {<national_law>}.}"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "testing",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@holmdigital/engine",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"author": "Holm Digital AB",
|
|
61
61
|
"license": "MIT",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@holmdigital/components": "^2.
|
|
63
|
+
"@holmdigital/components": "^2.3.0",
|
|
64
64
|
"@holmdigital/standards": "*",
|
|
65
65
|
"axe-core": "^4.11.1",
|
|
66
66
|
"chalk": "^5.3.0",
|