@holmdigital/engine 2.1.6 → 2.1.7

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.
@@ -1,6 +1,7 @@
1
1
  import {
2
+ __dirname,
2
3
  __require
3
- } from "./chunk-Y6FXYEAI.mjs";
4
+ } from "./chunk-DIBTSSLZ.mjs";
4
5
 
5
6
  // src/core/virtual-dom.ts
6
7
  var VirtualDOMBuilder = class {
@@ -137,7 +138,7 @@ var HtmlValidator = class {
137
138
  // src/core/regulatory-scanner.ts
138
139
  import { readFileSync } from "fs";
139
140
  function getEngineVersion() {
140
- return "2.1.6";
141
+ return "2.1.7";
141
142
  }
142
143
  function getStandardsVersion() {
143
144
  try {
@@ -270,7 +271,7 @@ var RegulatoryScanner = class {
270
271
  async enrichResults(axeResults) {
271
272
  const reports = [];
272
273
  const { searchRulesByTags, generateRegulatoryReport, getConvergenceRule } = await import("@holmdigital/standards");
273
- const { getCurrentLang } = await import("./i18n-WJXLKRLV.mjs");
274
+ const { getCurrentLang } = await import("./i18n-6XB3K2PH.mjs");
274
275
  const lang = getCurrentLang();
275
276
  for (const violation of axeResults.violations) {
276
277
  let report = generateRegulatoryReport(violation.id, lang);
@@ -494,45 +495,61 @@ import { AccessibilityStatement } from "@holmdigital/components";
494
495
  import { ENFORCEMENT_BODIES } from "@holmdigital/standards";
495
496
  import fs from "fs/promises";
496
497
  import path from "path";
497
- import { fileURLToPath } from "url";
498
- var __dirname_esm = typeof __dirname === "undefined" ? path.dirname(fileURLToPath(import.meta.url)) : __dirname;
498
+ var EVALUATION_METHOD = {
499
+ sv: "Automatiserad granskning via @holmdigital/engine",
500
+ en: "Automated scan via @holmdigital/engine",
501
+ no: "Automatisert gjennomgang via @holmdigital/engine",
502
+ nb: "Automatisert gjennomgang via @holmdigital/engine",
503
+ fi: "Automaattinen tarkistus @holmdigital/engine-ty\xF6kalulla",
504
+ da: "Automatiseret gennemgang via @holmdigital/engine",
505
+ de: "Automatisierte Pr\xFCfung mit @holmdigital/engine",
506
+ fr: "Analyse automatis\xE9e via @holmdigital/engine",
507
+ es: "An\xE1lisis automatizado mediante @holmdigital/engine",
508
+ nl: "Geautomatiseerde controle via @holmdigital/engine",
509
+ "en-gb": "Automated scan via @holmdigital/engine",
510
+ "en-us": "Automated scan via @holmdigital/engine",
511
+ "en-ca": "Automated scan via @holmdigital/engine"
512
+ };
513
+ var STATUS_LABELS = {
514
+ sv: { full: "Fullt ut f\xF6renlig", partial: "Delvis f\xF6renlig", "non-compliant": "Inte f\xF6renlig" },
515
+ en: { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
516
+ no: { full: "Helt i samsvar", partial: "Delvis i samsvar", "non-compliant": "Ikke i samsvar" },
517
+ nb: { full: "Helt i samsvar", partial: "Delvis i samsvar", "non-compliant": "Ikke i samsvar" },
518
+ fi: { full: "T\xE4ysin saavutettava", partial: "Osittain saavutettava", "non-compliant": "Ei saavutettava" },
519
+ da: { full: "Fuldt ud i overensstemmelse", partial: "Delvist i overensstemmelse", "non-compliant": "Ikke i overensstemmelse" },
520
+ de: { full: "Vollst\xE4ndig konform", partial: "Teilweise konform", "non-compliant": "Nicht konform" },
521
+ fr: { full: "Totalement conforme", partial: "Partiellement conforme", "non-compliant": "Non conforme" },
522
+ es: { full: "Plenamente conforme", partial: "Parcialmente conforme", "non-compliant": "No conforme" },
523
+ nl: { full: "Volledig conform", partial: "Gedeeltelijk conform", "non-compliant": "Niet conform" },
524
+ "en-gb": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
525
+ "en-us": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
526
+ "en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
527
+ };
528
+ var RESPONSE_TIME_DEFAULT = {
529
+ sv: "2 dagar",
530
+ en: "2 days",
531
+ no: "2 dager",
532
+ nb: "2 dager",
533
+ fi: "2 p\xE4iv\xE4\xE4",
534
+ da: "2 dage",
535
+ de: "2 Tage",
536
+ fr: "2 jours",
537
+ es: "2 d\xEDas",
538
+ nl: "2 dagen",
539
+ "en-gb": "2 days",
540
+ "en-us": "2 days",
541
+ "en-ca": "2 days"
542
+ };
499
543
  async function generateStatementContent(result, lang = "en", format = "html", metadata) {
544
+ const templatePath = path.join(__dirname, "templates", `${lang}.json`);
500
545
  let template;
501
- const possibleTemplatePaths = [
502
- path.join(__dirname_esm, "templates", `${lang}.json`),
503
- path.join(__dirname_esm, "../src/reporting/templates", `${lang}.json`),
504
- path.join(process.cwd(), "packages/engine/src/reporting/templates", `${lang}.json`)
505
- ];
506
- let loaded = false;
507
- for (const p of possibleTemplatePaths) {
508
- try {
509
- const data = await fs.readFile(p, "utf-8");
510
- template = JSON.parse(data);
511
- loaded = true;
512
- break;
513
- } catch (e) {
514
- continue;
515
- }
516
- }
517
- if (!loaded) {
518
- const fallbackPaths = [
519
- path.join(__dirname_esm, "templates", "en.json"),
520
- path.join(__dirname_esm, "../src/reporting/templates", "en.json"),
521
- path.join(process.cwd(), "packages/engine/src/reporting/templates", "en.json")
522
- ];
523
- for (const p of fallbackPaths) {
524
- try {
525
- const data = await fs.readFile(p, "utf-8");
526
- template = JSON.parse(data);
527
- loaded = true;
528
- break;
529
- } catch (e) {
530
- continue;
531
- }
532
- }
533
- }
534
- if (!loaded || !template) {
535
- throw new Error(`Accessibility statement templates missing. Looked in: ${possibleTemplatePaths.join(", ")}`);
546
+ try {
547
+ const data = await fs.readFile(templatePath, "utf-8");
548
+ template = JSON.parse(data);
549
+ } catch {
550
+ throw new Error(
551
+ `Accessibility statement template not found for locale "${lang}". Expected file at: ${templatePath}`
552
+ );
536
553
  }
537
554
  let complianceLevel = "full";
538
555
  if (result.stats.critical > 0 || result.legalSummary && result.legalSummary.eaaDeadlineViolations > 0) {
@@ -554,6 +571,9 @@ async function generateStatementContent(result, lang = "en", format = "html", me
554
571
  if (result.url.endsWith(".dk")) country = "DK";
555
572
  if (result.url.endsWith(".fi")) country = "FI";
556
573
  if (result.url.endsWith(".de")) country = "DE";
574
+ if (result.url.endsWith(".uk")) country = "GB";
575
+ if (result.url.endsWith(".us")) country = "US";
576
+ if (result.url.endsWith(".ca")) country = "CA";
557
577
  }
558
578
  const sector = "public";
559
579
  let logoUrl;
@@ -583,7 +603,7 @@ async function generateStatementContent(result, lang = "en", format = "html", me
583
603
  complianceLevel,
584
604
  lastReviewDate: /* @__PURE__ */ new Date(),
585
605
  assessmentDate: /* @__PURE__ */ new Date(),
586
- evaluationMethod: lang === "sv" ? "Automatiserad granskning via @holmdigital/engine" : "Automated Scan via @holmdigital/engine",
606
+ evaluationMethod: EVALUATION_METHOD[lang] || EVALUATION_METHOD["en"],
587
607
  generatorTool: {
588
608
  name: "HolmDigital Regulatory Engine",
589
609
  url: "https://holmdigital.se"
@@ -591,7 +611,7 @@ async function generateStatementContent(result, lang = "en", format = "html", me
591
611
  logoUrl,
592
612
  contactEmail: metadata?.contactEmail || "hej@holmdigital.se",
593
613
  phoneNumber: metadata?.phoneNumber || "070-123 45 67",
594
- responseTime: metadata?.responseTime || (lang === "sv" ? "2 dagar" : "2 days"),
614
+ responseTime: metadata?.responseTime || RESPONSE_TIME_DEFAULT[lang] || RESPONSE_TIME_DEFAULT["en"],
595
615
  nonComplianceItems,
596
616
  locale: lang,
597
617
  badgeUrl: generateBadgeUrl(result.score) || void 0,
@@ -617,10 +637,11 @@ async function generateStatementContent(result, lang = "en", format = "html", me
617
637
  </html>`;
618
638
  } else {
619
639
  const dateStr = props.lastReviewDate.toISOString().split("T")[0];
640
+ const labels = STATUS_LABELS[lang] || STATUS_LABELS["en"];
620
641
  const statusMap = {
621
- "full": lang === "sv" ? "Fullt ut f\xF6renlig" : lang === "no" || lang === "nb" ? "Helt i samsvar" : lang === "da" ? "Fuldt ud i overensstemmelse" : "Fully compliant",
622
- "partial": lang === "sv" ? "Delvis f\xF6renlig" : lang === "no" || lang === "nb" ? "Delvis i samsvar" : lang === "da" ? "Delvist i overensstemmelse" : "Partially compliant",
623
- "non-compliant": lang === "sv" ? "Inte f\xF6renlig" : lang === "no" || lang === "nb" ? "Ikke i samsvar" : lang === "da" ? "Ikke i overensstemmelse" : "Non-compliant"
642
+ "full": labels["full"],
643
+ "partial": labels["partial"],
644
+ "non-compliant": labels["non-compliant"]
624
645
  };
625
646
  const substitutions = {
626
647
  statusString: statusMap[complianceLevel],
@@ -632,6 +653,8 @@ async function generateStatementContent(result, lang = "en", format = "html", me
632
653
  "{<e-postadress>}": props.contactEmail || "",
633
654
  "{<e-mailosoite>}": props.contactEmail || "",
634
655
  "{<e-mailadresse>}": props.contactEmail || "",
656
+ "{<e-mailadres>}": props.contactEmail || "",
657
+ "{<e-postadresse>}": props.contactEmail || "",
635
658
  "{<e-mail address>}": props.contactEmail || "",
636
659
  "{<email address>}": props.contactEmail || "",
637
660
  "{<telefonnummer>}": props.phoneNumber || "",
@@ -651,6 +674,7 @@ async function generateStatementContent(result, lang = "en", format = "html", me
651
674
  "{<assessment date>}": dateStr,
652
675
  "{<uppdateringsdatum>}": dateStr,
653
676
  "{<oppdateringsdato>}": dateStr,
677
+ "{<opdateringsdato>}": dateStr,
654
678
  "{<p\xE4ivitysp\xE4iv\xE4>}": dateStr,
655
679
  "{<updatedatum>}": dateStr,
656
680
  "{<aktualisierungsdatum>}": dateStr,
@@ -664,13 +688,18 @@ async function generateStatementContent(result, lang = "en", format = "html", me
664
688
  "{<ver\xF6ffentlichungsdatum>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
665
689
  "{<date_publication>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
666
690
  "{<fecha_publicacion>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
691
+ "{<offentligg\xF8relsesdato>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
667
692
  "{<publish date>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
668
693
  "{<metod>}": props.evaluationMethod || "Automated Scan",
669
694
  "{<metodi>}": props.evaluationMethod || "Automated Scan",
670
695
  "{<methode>}": props.evaluationMethod || "Automated Scan",
696
+ "{<metode>}": props.evaluationMethod || "Automated Scan",
697
+ "{<metodo>}": props.evaluationMethod || "Automated Scan",
698
+ "{<m\xE9thode>}": props.evaluationMethod || "Automated Scan",
671
699
  "{<m\xE9todo>}": props.evaluationMethod || "Automated Scan",
672
700
  "{<method>}": props.evaluationMethod || "Automated Scan",
673
701
  "{<extern akt\xF6r>}": props.generatorTool?.name || "HolmDigital Engine",
702
+ "{<ekstern akt\xF8r>}": props.generatorTool?.name || "HolmDigital Engine",
674
703
  "{<ekstern aktor>}": props.generatorTool?.name || "HolmDigital Engine",
675
704
  "{<ulkoinen taho>}": props.generatorTool?.name || "HolmDigital Engine",
676
705
  "{<externe partij>}": props.generatorTool?.name || "HolmDigital Engine",
@@ -702,6 +731,9 @@ async function generateStatementContent(result, lang = "en", format = "html", me
702
731
  }
703
732
  return content2;
704
733
  });
734
+ processed = processed.replace(/\{<[^>]+>\}/g, (match) => {
735
+ return substitutions[match] !== void 0 ? substitutions[match] : match;
736
+ });
705
737
  processed = processed.replace(/\{([^{}]*?)\}/g, (_match, content2) => {
706
738
  const parts = content2.split("/");
707
739
  if (parts.length >= 2) {
@@ -710,8 +742,7 @@ async function generateStatementContent(result, lang = "en", format = "html", me
710
742
  if (complianceLevel === "non-compliant") idx = parts.length > 2 ? 2 : 1;
711
743
  return parts[idx].trim();
712
744
  }
713
- const key = `{${content2}}`;
714
- return substitutions[key] !== void 0 ? substitutions[key] : _match;
745
+ return _match;
715
746
  });
716
747
  return processed;
717
748
  };
@@ -5,6 +5,14 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
5
5
  throw Error('Dynamic require of "' + x + '" is not supported');
6
6
  });
7
7
 
8
+ // ../../node_modules/tsup/assets/esm_shims.js
9
+ import path from "path";
10
+ import { fileURLToPath } from "url";
11
+ var getFilename = () => fileURLToPath(import.meta.url);
12
+ var getDirname = () => path.dirname(getFilename());
13
+ var __dirname = /* @__PURE__ */ getDirname();
14
+
8
15
  export {
9
- __require
16
+ __require,
17
+ __dirname
10
18
  };
package/dist/cli/index.js CHANGED
@@ -30,6 +30,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  mod
31
31
  ));
32
32
 
33
+ // ../../node_modules/tsup/assets/cjs_shims.js
34
+ var init_cjs_shims = __esm({
35
+ "../../node_modules/tsup/assets/cjs_shims.js"() {
36
+ "use strict";
37
+ }
38
+ });
39
+
33
40
  // src/locales/en.json
34
41
  var en_default;
35
42
  var init_en = __esm({
@@ -484,6 +491,7 @@ var locales, currentLang;
484
491
  var init_i18n = __esm({
485
492
  "src/i18n/index.ts"() {
486
493
  "use strict";
494
+ init_cjs_shims();
487
495
  init_en();
488
496
  init_sv();
489
497
  init_de();
@@ -542,6 +550,7 @@ Fix: ${report.remediation.component ? `Use <${report.remediation.component} />`
542
550
  var init_github_actions = __esm({
543
551
  "src/reporting/github-actions.ts"() {
544
552
  "use strict";
553
+ init_cjs_shims();
545
554
  }
546
555
  });
547
556
 
@@ -625,19 +634,23 @@ function escapeXML(unsafe) {
625
634
  var init_junit_generator = __esm({
626
635
  "src/reporting/junit-generator.ts"() {
627
636
  "use strict";
637
+ init_cjs_shims();
628
638
  }
629
639
  });
630
640
 
631
641
  // src/cli/index.ts
642
+ init_cjs_shims();
632
643
  var import_commander = require("commander");
633
644
  var import_chalk = __toESM(require("chalk"));
634
645
  var import_ora = __toESM(require("ora"));
635
646
 
636
647
  // src/core/regulatory-scanner.ts
648
+ init_cjs_shims();
637
649
  var import_axe_core = __toESM(require("axe-core"));
638
650
  var import_puppeteer = __toESM(require("puppeteer"));
639
651
 
640
652
  // src/core/virtual-dom.ts
653
+ init_cjs_shims();
641
654
  var VirtualDOMBuilder = class {
642
655
  page;
643
656
  constructor(page) {
@@ -728,6 +741,7 @@ var VirtualDOMBuilder = class {
728
741
  };
729
742
 
730
743
  // src/core/html-validator.ts
744
+ init_cjs_shims();
731
745
  var import_html_validate = require("html-validate");
732
746
  var HtmlValidator = class {
733
747
  validator;
@@ -768,7 +782,7 @@ var HtmlValidator = class {
768
782
  // src/core/regulatory-scanner.ts
769
783
  var import_node_fs = require("fs");
770
784
  function getEngineVersion() {
771
- return "2.1.6";
785
+ return "2.1.7";
772
786
  }
773
787
  function getStandardsVersion() {
774
788
  try {
@@ -1034,6 +1048,7 @@ var RegulatoryScanner = class {
1034
1048
  };
1035
1049
 
1036
1050
  // src/automation/pseudo-automation.ts
1051
+ init_cjs_shims();
1037
1052
  var PseudoAutomationEngine = class {
1038
1053
  /**
1039
1054
  * Generera ett Playwright-testskript baserat på en rapport
@@ -1101,7 +1116,11 @@ test('${testName}', async ({ page }) => {
1101
1116
  }
1102
1117
  };
1103
1118
 
1119
+ // src/reporting/html-template.ts
1120
+ init_cjs_shims();
1121
+
1104
1122
  // src/reporting/badge-generator.ts
1123
+ init_cjs_shims();
1105
1124
  var BADGE_COLOR = "00703C";
1106
1125
  var BADGE_BASE_URL = "https://img.shields.io/badge/HolmDigital_Engine";
1107
1126
  function generateBadgeUrl(score) {
@@ -1120,13 +1139,30 @@ function generateBadgeMarkdown(score) {
1120
1139
 
1121
1140
  // src/reporting/html-template.ts
1122
1141
  init_i18n();
1142
+ var LOCALE_TO_INTL = {
1143
+ sv: "sv-SE",
1144
+ en: "en-US",
1145
+ no: "nb-NO",
1146
+ nb: "nb-NO",
1147
+ fi: "fi-FI",
1148
+ da: "da-DK",
1149
+ dk: "da-DK",
1150
+ de: "de-DE",
1151
+ fr: "fr-FR",
1152
+ es: "es-ES",
1153
+ nl: "nl-NL",
1154
+ "en-gb": "en-GB",
1155
+ "en-us": "en-US",
1156
+ "en-ca": "en-CA"
1157
+ };
1123
1158
  function generateReportHTML(result) {
1124
1159
  const criticalCount = result.stats.critical;
1125
1160
  const highCount = result.stats.high;
1126
1161
  const htmlErrorsCount = result.htmlValidation?.errors?.length ?? 0;
1127
1162
  const scoreColor = result.score > 90 ? "#16a34a" : result.score > 70 ? "#eab308" : "#dc2626";
1128
1163
  const formatDate = (dateString) => {
1129
- return new Date(dateString).toLocaleDateString(getCurrentLang() === "sv" ? "sv-SE" : "en-US", {
1164
+ const intlLocale = LOCALE_TO_INTL[getCurrentLang()] || "en-US";
1165
+ return new Date(dateString).toLocaleDateString(intlLocale, {
1130
1166
  year: "numeric",
1131
1167
  month: "long",
1132
1168
  day: "numeric",
@@ -1406,6 +1442,7 @@ function generateReportHTML(result) {
1406
1442
  }
1407
1443
 
1408
1444
  // src/reporting/pdf-generator.ts
1445
+ init_cjs_shims();
1409
1446
  var import_puppeteer2 = __toESM(require("puppeteer"));
1410
1447
  async function generatePDF(htmlContent, outputPath) {
1411
1448
  const browser = await import_puppeteer2.default.launch({
@@ -1435,52 +1472,68 @@ async function generatePDF(htmlContent, outputPath) {
1435
1472
  }
1436
1473
 
1437
1474
  // src/reporting/statement-generator.ts
1475
+ init_cjs_shims();
1438
1476
  var import_react = __toESM(require("react"));
1439
1477
  var import_server = require("react-dom/server");
1440
1478
  var import_components = require("@holmdigital/components");
1441
1479
  var import_standards = require("@holmdigital/standards");
1442
1480
  var import_promises = __toESM(require("fs/promises"));
1443
1481
  var import_path = __toESM(require("path"));
1444
- var import_node_url = require("url");
1445
- var import_meta = {};
1446
- var __dirname_esm = typeof __dirname === "undefined" ? import_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url)) : __dirname;
1482
+ var EVALUATION_METHOD = {
1483
+ sv: "Automatiserad granskning via @holmdigital/engine",
1484
+ en: "Automated scan via @holmdigital/engine",
1485
+ no: "Automatisert gjennomgang via @holmdigital/engine",
1486
+ nb: "Automatisert gjennomgang via @holmdigital/engine",
1487
+ fi: "Automaattinen tarkistus @holmdigital/engine-ty\xF6kalulla",
1488
+ da: "Automatiseret gennemgang via @holmdigital/engine",
1489
+ de: "Automatisierte Pr\xFCfung mit @holmdigital/engine",
1490
+ fr: "Analyse automatis\xE9e via @holmdigital/engine",
1491
+ es: "An\xE1lisis automatizado mediante @holmdigital/engine",
1492
+ nl: "Geautomatiseerde controle via @holmdigital/engine",
1493
+ "en-gb": "Automated scan via @holmdigital/engine",
1494
+ "en-us": "Automated scan via @holmdigital/engine",
1495
+ "en-ca": "Automated scan via @holmdigital/engine"
1496
+ };
1497
+ var STATUS_LABELS = {
1498
+ sv: { full: "Fullt ut f\xF6renlig", partial: "Delvis f\xF6renlig", "non-compliant": "Inte f\xF6renlig" },
1499
+ en: { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
1500
+ no: { full: "Helt i samsvar", partial: "Delvis i samsvar", "non-compliant": "Ikke i samsvar" },
1501
+ nb: { full: "Helt i samsvar", partial: "Delvis i samsvar", "non-compliant": "Ikke i samsvar" },
1502
+ fi: { full: "T\xE4ysin saavutettava", partial: "Osittain saavutettava", "non-compliant": "Ei saavutettava" },
1503
+ da: { full: "Fuldt ud i overensstemmelse", partial: "Delvist i overensstemmelse", "non-compliant": "Ikke i overensstemmelse" },
1504
+ de: { full: "Vollst\xE4ndig konform", partial: "Teilweise konform", "non-compliant": "Nicht konform" },
1505
+ fr: { full: "Totalement conforme", partial: "Partiellement conforme", "non-compliant": "Non conforme" },
1506
+ es: { full: "Plenamente conforme", partial: "Parcialmente conforme", "non-compliant": "No conforme" },
1507
+ nl: { full: "Volledig conform", partial: "Gedeeltelijk conform", "non-compliant": "Niet conform" },
1508
+ "en-gb": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
1509
+ "en-us": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
1510
+ "en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
1511
+ };
1512
+ var RESPONSE_TIME_DEFAULT = {
1513
+ sv: "2 dagar",
1514
+ en: "2 days",
1515
+ no: "2 dager",
1516
+ nb: "2 dager",
1517
+ fi: "2 p\xE4iv\xE4\xE4",
1518
+ da: "2 dage",
1519
+ de: "2 Tage",
1520
+ fr: "2 jours",
1521
+ es: "2 d\xEDas",
1522
+ nl: "2 dagen",
1523
+ "en-gb": "2 days",
1524
+ "en-us": "2 days",
1525
+ "en-ca": "2 days"
1526
+ };
1447
1527
  async function generateStatementContent(result, lang = "en", format = "html", metadata) {
1528
+ const templatePath = import_path.default.join(__dirname, "templates", `${lang}.json`);
1448
1529
  let template;
1449
- const possibleTemplatePaths = [
1450
- import_path.default.join(__dirname_esm, "templates", `${lang}.json`),
1451
- import_path.default.join(__dirname_esm, "../src/reporting/templates", `${lang}.json`),
1452
- import_path.default.join(process.cwd(), "packages/engine/src/reporting/templates", `${lang}.json`)
1453
- ];
1454
- let loaded = false;
1455
- for (const p of possibleTemplatePaths) {
1456
- try {
1457
- const data = await import_promises.default.readFile(p, "utf-8");
1458
- template = JSON.parse(data);
1459
- loaded = true;
1460
- break;
1461
- } catch (e) {
1462
- continue;
1463
- }
1464
- }
1465
- if (!loaded) {
1466
- const fallbackPaths = [
1467
- import_path.default.join(__dirname_esm, "templates", "en.json"),
1468
- import_path.default.join(__dirname_esm, "../src/reporting/templates", "en.json"),
1469
- import_path.default.join(process.cwd(), "packages/engine/src/reporting/templates", "en.json")
1470
- ];
1471
- for (const p of fallbackPaths) {
1472
- try {
1473
- const data = await import_promises.default.readFile(p, "utf-8");
1474
- template = JSON.parse(data);
1475
- loaded = true;
1476
- break;
1477
- } catch (e) {
1478
- continue;
1479
- }
1480
- }
1481
- }
1482
- if (!loaded || !template) {
1483
- throw new Error(`Accessibility statement templates missing. Looked in: ${possibleTemplatePaths.join(", ")}`);
1530
+ try {
1531
+ const data = await import_promises.default.readFile(templatePath, "utf-8");
1532
+ template = JSON.parse(data);
1533
+ } catch {
1534
+ throw new Error(
1535
+ `Accessibility statement template not found for locale "${lang}". Expected file at: ${templatePath}`
1536
+ );
1484
1537
  }
1485
1538
  let complianceLevel = "full";
1486
1539
  if (result.stats.critical > 0 || result.legalSummary && result.legalSummary.eaaDeadlineViolations > 0) {
@@ -1502,6 +1555,9 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1502
1555
  if (result.url.endsWith(".dk")) country = "DK";
1503
1556
  if (result.url.endsWith(".fi")) country = "FI";
1504
1557
  if (result.url.endsWith(".de")) country = "DE";
1558
+ if (result.url.endsWith(".uk")) country = "GB";
1559
+ if (result.url.endsWith(".us")) country = "US";
1560
+ if (result.url.endsWith(".ca")) country = "CA";
1505
1561
  }
1506
1562
  const sector = "public";
1507
1563
  let logoUrl;
@@ -1531,7 +1587,7 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1531
1587
  complianceLevel,
1532
1588
  lastReviewDate: /* @__PURE__ */ new Date(),
1533
1589
  assessmentDate: /* @__PURE__ */ new Date(),
1534
- evaluationMethod: lang === "sv" ? "Automatiserad granskning via @holmdigital/engine" : "Automated Scan via @holmdigital/engine",
1590
+ evaluationMethod: EVALUATION_METHOD[lang] || EVALUATION_METHOD["en"],
1535
1591
  generatorTool: {
1536
1592
  name: "HolmDigital Regulatory Engine",
1537
1593
  url: "https://holmdigital.se"
@@ -1539,7 +1595,7 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1539
1595
  logoUrl,
1540
1596
  contactEmail: metadata?.contactEmail || "hej@holmdigital.se",
1541
1597
  phoneNumber: metadata?.phoneNumber || "070-123 45 67",
1542
- responseTime: metadata?.responseTime || (lang === "sv" ? "2 dagar" : "2 days"),
1598
+ responseTime: metadata?.responseTime || RESPONSE_TIME_DEFAULT[lang] || RESPONSE_TIME_DEFAULT["en"],
1543
1599
  nonComplianceItems,
1544
1600
  locale: lang,
1545
1601
  badgeUrl: generateBadgeUrl(result.score) || void 0,
@@ -1565,10 +1621,11 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1565
1621
  </html>`;
1566
1622
  } else {
1567
1623
  const dateStr = props.lastReviewDate.toISOString().split("T")[0];
1624
+ const labels = STATUS_LABELS[lang] || STATUS_LABELS["en"];
1568
1625
  const statusMap = {
1569
- "full": lang === "sv" ? "Fullt ut f\xF6renlig" : lang === "no" || lang === "nb" ? "Helt i samsvar" : lang === "da" ? "Fuldt ud i overensstemmelse" : "Fully compliant",
1570
- "partial": lang === "sv" ? "Delvis f\xF6renlig" : lang === "no" || lang === "nb" ? "Delvis i samsvar" : lang === "da" ? "Delvist i overensstemmelse" : "Partially compliant",
1571
- "non-compliant": lang === "sv" ? "Inte f\xF6renlig" : lang === "no" || lang === "nb" ? "Ikke i samsvar" : lang === "da" ? "Ikke i overensstemmelse" : "Non-compliant"
1626
+ "full": labels["full"],
1627
+ "partial": labels["partial"],
1628
+ "non-compliant": labels["non-compliant"]
1572
1629
  };
1573
1630
  const substitutions = {
1574
1631
  statusString: statusMap[complianceLevel],
@@ -1580,6 +1637,8 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1580
1637
  "{<e-postadress>}": props.contactEmail || "",
1581
1638
  "{<e-mailosoite>}": props.contactEmail || "",
1582
1639
  "{<e-mailadresse>}": props.contactEmail || "",
1640
+ "{<e-mailadres>}": props.contactEmail || "",
1641
+ "{<e-postadresse>}": props.contactEmail || "",
1583
1642
  "{<e-mail address>}": props.contactEmail || "",
1584
1643
  "{<email address>}": props.contactEmail || "",
1585
1644
  "{<telefonnummer>}": props.phoneNumber || "",
@@ -1599,6 +1658,7 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1599
1658
  "{<assessment date>}": dateStr,
1600
1659
  "{<uppdateringsdatum>}": dateStr,
1601
1660
  "{<oppdateringsdato>}": dateStr,
1661
+ "{<opdateringsdato>}": dateStr,
1602
1662
  "{<p\xE4ivitysp\xE4iv\xE4>}": dateStr,
1603
1663
  "{<updatedatum>}": dateStr,
1604
1664
  "{<aktualisierungsdatum>}": dateStr,
@@ -1612,13 +1672,18 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1612
1672
  "{<ver\xF6ffentlichungsdatum>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
1613
1673
  "{<date_publication>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
1614
1674
  "{<fecha_publicacion>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
1675
+ "{<offentligg\xF8relsesdato>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
1615
1676
  "{<publish date>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
1616
1677
  "{<metod>}": props.evaluationMethod || "Automated Scan",
1617
1678
  "{<metodi>}": props.evaluationMethod || "Automated Scan",
1618
1679
  "{<methode>}": props.evaluationMethod || "Automated Scan",
1680
+ "{<metode>}": props.evaluationMethod || "Automated Scan",
1681
+ "{<metodo>}": props.evaluationMethod || "Automated Scan",
1682
+ "{<m\xE9thode>}": props.evaluationMethod || "Automated Scan",
1619
1683
  "{<m\xE9todo>}": props.evaluationMethod || "Automated Scan",
1620
1684
  "{<method>}": props.evaluationMethod || "Automated Scan",
1621
1685
  "{<extern akt\xF6r>}": props.generatorTool?.name || "HolmDigital Engine",
1686
+ "{<ekstern akt\xF8r>}": props.generatorTool?.name || "HolmDigital Engine",
1622
1687
  "{<ekstern aktor>}": props.generatorTool?.name || "HolmDigital Engine",
1623
1688
  "{<ulkoinen taho>}": props.generatorTool?.name || "HolmDigital Engine",
1624
1689
  "{<externe partij>}": props.generatorTool?.name || "HolmDigital Engine",
@@ -1650,6 +1715,9 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1650
1715
  }
1651
1716
  return content2;
1652
1717
  });
1718
+ processed = processed.replace(/\{<[^>]+>\}/g, (match) => {
1719
+ return substitutions[match] !== void 0 ? substitutions[match] : match;
1720
+ });
1653
1721
  processed = processed.replace(/\{([^{}]*?)\}/g, (_match, content2) => {
1654
1722
  const parts = content2.split("/");
1655
1723
  if (parts.length >= 2) {
@@ -1658,8 +1726,7 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1658
1726
  if (complianceLevel === "non-compliant") idx = parts.length > 2 ? 2 : 1;
1659
1727
  return parts[idx].trim();
1660
1728
  }
1661
- const key = `{${content2}}`;
1662
- return substitutions[key] !== void 0 ? substitutions[key] : _match;
1729
+ return _match;
1663
1730
  });
1664
1731
  return processed;
1665
1732
  };
@@ -1690,6 +1757,7 @@ async function generateStatement(result, outputPath, lang = "en", format = "html
1690
1757
  init_i18n();
1691
1758
 
1692
1759
  // src/cli/cloud-client.ts
1760
+ init_cjs_shims();
1693
1761
  function transformToCloudPayload(result) {
1694
1762
  const violations = result.reports.map((report) => {
1695
1763
  const firstNode = report.failingNodes?.[0];
@@ -7,13 +7,13 @@ import {
7
7
  generateStatement,
8
8
  generateStatementContent,
9
9
  getEngineVersion
10
- } from "../chunk-BR2T76XC.mjs";
10
+ } from "../chunk-BXSPTSSZ.mjs";
11
11
  import {
12
12
  getCurrentLang,
13
13
  setLanguage,
14
14
  t
15
- } from "../chunk-PIGYYEJV.mjs";
16
- import "../chunk-Y6FXYEAI.mjs";
15
+ } from "../chunk-MGIEQZMZ.mjs";
16
+ import "../chunk-DIBTSSLZ.mjs";
17
17
 
18
18
  // src/cli/index.ts
19
19
  import { Command } from "commander";
@@ -21,13 +21,30 @@ import chalk from "chalk";
21
21
  import ora from "ora";
22
22
 
23
23
  // src/reporting/html-template.ts
24
+ var LOCALE_TO_INTL = {
25
+ sv: "sv-SE",
26
+ en: "en-US",
27
+ no: "nb-NO",
28
+ nb: "nb-NO",
29
+ fi: "fi-FI",
30
+ da: "da-DK",
31
+ dk: "da-DK",
32
+ de: "de-DE",
33
+ fr: "fr-FR",
34
+ es: "es-ES",
35
+ nl: "nl-NL",
36
+ "en-gb": "en-GB",
37
+ "en-us": "en-US",
38
+ "en-ca": "en-CA"
39
+ };
24
40
  function generateReportHTML(result) {
25
41
  const criticalCount = result.stats.critical;
26
42
  const highCount = result.stats.high;
27
43
  const htmlErrorsCount = result.htmlValidation?.errors?.length ?? 0;
28
44
  const scoreColor = result.score > 90 ? "#16a34a" : result.score > 70 ? "#eab308" : "#dc2626";
29
45
  const formatDate = (dateString) => {
30
- return new Date(dateString).toLocaleDateString(getCurrentLang() === "sv" ? "sv-SE" : "en-US", {
46
+ const intlLocale = LOCALE_TO_INTL[getCurrentLang()] || "en-US";
47
+ return new Date(dateString).toLocaleDateString(intlLocale, {
31
48
  year: "numeric",
32
49
  month: "long",
33
50
  day: "numeric",
@@ -618,11 +635,11 @@ program.argument("<url>", "URL to scan").option("--lang <code>", "Language code
618
635
  }
619
636
  }
620
637
  if (options.ci && result.reports.length > 0) {
621
- const { generateGitHubActionsAnnotations } = await import("../github-actions-DYED2EIL.mjs");
638
+ const { generateGitHubActionsAnnotations } = await import("../github-actions-5AFDFD4T.mjs");
622
639
  generateGitHubActionsAnnotations(result.reports);
623
640
  }
624
641
  if (options.junit) {
625
- const { generateJUnitXML } = await import("../junit-generator-QIUEEUXW.mjs");
642
+ const { generateJUnitXML } = await import("../junit-generator-MNO6GP5J.mjs");
626
643
  const fs = await import("fs/promises");
627
644
  const xml = generateJUnitXML(result);
628
645
  await fs.writeFile(options.junit, xml);
@@ -0,0 +1,39 @@
1
+ {
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 the Accessible Canada Act and the Accessibility for Ontarians with Disabilities Act, any known accessibility issues, and how you can report problems so that we can fix them.",
4
+ "sections": [
5
+ {
6
+ "id": "how-accessible",
7
+ "title": "How accessible is the website?",
8
+ "content": "{There are no known accessibility issues with this website./We know some parts of this website aren't fully accessible. See the section on non-accessible content below for more information./We know some parts of this website aren't fully accessible. See the section on non-accessible content below for more information.}"
9
+ },
10
+ {
11
+ "id": "what-to-do",
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 the accessibility regulations 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
+ },
15
+ {
16
+ "id": "reporting",
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 the accessibility regulations, contact us and let us know about the problem."
19
+ },
20
+ {
21
+ "id": "enforcement",
22
+ "title": "Enforcement procedure",
23
+ "content": "The {<enforcement_body>} is responsible for enforcing the Accessible Canada Act. 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 Accessible Canada Act or the Accessibility for Ontarians with Disabilities Act, or if your request for accessible content has not been handled appropriately."
24
+ },
25
+ {
26
+ "id": "technical",
27
+ "title": "Technical information about this website's accessibility",
28
+ "content": "{This website is fully compliant with the Accessible Canada Act and the Accessibility for Ontarians with Disabilities Act./This website is partially compliant with the Accessible Canada Act and the Accessibility for Ontarians with Disabilities Act, due to the non-compliances listed below./This website is not compliant with the Accessible Canada Act and the Accessibility for Ontarians with Disabilities Act. The non-accessible sections are listed below.}"
29
+ },
30
+ {
31
+ "content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with the accessibility regulations**\n\n{<issues>}\n]"
32
+ },
33
+ {
34
+ "id": "testing",
35
+ "title": "How we tested this website",
36
+ "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 website was published on {<publish date>}.\n\nThe statement was last updated on {<update date>}."
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,39 @@
1
+ {
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 the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018, any known accessibility issues, and how you can report problems so that we can fix them.",
4
+ "sections": [
5
+ {
6
+ "id": "how-accessible",
7
+ "title": "How accessible is the website?",
8
+ "content": "{There are no known accessibility issues with this website./We know some parts of this website aren't fully accessible. See the section on non-accessible content below for more information./We know some parts of this website aren't fully accessible. See the section on non-accessible content below for more information.}"
9
+ },
10
+ {
11
+ "id": "what-to-do",
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 the accessibility regulations 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
+ },
15
+ {
16
+ "id": "reporting",
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 the accessibility regulations, contact us and let us know about the problem."
19
+ },
20
+ {
21
+ "id": "enforcement",
22
+ "title": "Enforcement procedure",
23
+ "content": "The {<enforcement_body>} is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018. 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
+ },
25
+ {
26
+ "id": "technical",
27
+ "title": "Technical information about this website's accessibility",
28
+ "content": "{This website is fully compliant with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018./This website is partially compliant with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018, due to the non-compliances listed below./This website is not compliant with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018. The non-accessible sections are listed below.}"
29
+ },
30
+ {
31
+ "content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with the accessibility regulations**\n\n{<issues>}\n]"
32
+ },
33
+ {
34
+ "id": "testing",
35
+ "title": "How we tested this website",
36
+ "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 website was published on {<publish date>}.\n\nThe statement was last updated on {<update date>}."
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,39 @@
1
+ {
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 Section 508 of the Rehabilitation Act, any known accessibility issues, and how you can report problems so that we can fix them.",
4
+ "sections": [
5
+ {
6
+ "id": "how-accessible",
7
+ "title": "How accessible is the website?",
8
+ "content": "{There are no known accessibility issues with this website./We know some parts of this website aren't fully accessible. See the section on non-accessible content below for more information./We know some parts of this website aren't fully accessible. See the section on non-accessible content below for more information.}"
9
+ },
10
+ {
11
+ "id": "what-to-do",
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 the accessibility regulations 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
+ },
15
+ {
16
+ "id": "reporting",
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 the accessibility regulations, contact us and let us know about the problem."
19
+ },
20
+ {
21
+ "id": "enforcement",
22
+ "title": "Enforcement procedure",
23
+ "content": "The {<enforcement_body>} is responsible for enforcing Section 508 of the Rehabilitation Act and the Americans with Disabilities Act (ADA). 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 Section 508 or the ADA, or if your request for accessible content has not been handled appropriately."
24
+ },
25
+ {
26
+ "id": "technical",
27
+ "title": "Technical information about this website's accessibility",
28
+ "content": "{This website is fully compliant with Section 508 of the Rehabilitation Act./This website is partially compliant with Section 508 of the Rehabilitation Act, due to the non-compliances listed below./This website is not compliant with Section 508 of the Rehabilitation Act. The non-accessible sections are listed below.}"
29
+ },
30
+ {
31
+ "content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with the accessibility regulations**\n\n{<issues>}\n]"
32
+ },
33
+ {
34
+ "id": "testing",
35
+ "title": "How we tested this website",
36
+ "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 website was published on {<publish date>}.\n\nThe statement was last updated on {<update date>}."
37
+ }
38
+ ]
39
+ }
@@ -1,4 +1,4 @@
1
- import "./chunk-Y6FXYEAI.mjs";
1
+ import "./chunk-DIBTSSLZ.mjs";
2
2
 
3
3
  // src/reporting/github-actions.ts
4
4
  function generateGitHubActionsAnnotations(reports) {
@@ -2,8 +2,8 @@ import {
2
2
  getCurrentLang,
3
3
  setLanguage,
4
4
  t
5
- } from "./chunk-PIGYYEJV.mjs";
6
- import "./chunk-Y6FXYEAI.mjs";
5
+ } from "./chunk-MGIEQZMZ.mjs";
6
+ import "./chunk-DIBTSSLZ.mjs";
7
7
  export {
8
8
  getCurrentLang,
9
9
  setLanguage,
package/dist/index.js CHANGED
@@ -30,6 +30,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
30
  ));
31
31
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
32
 
33
+ // ../../node_modules/tsup/assets/cjs_shims.js
34
+ var init_cjs_shims = __esm({
35
+ "../../node_modules/tsup/assets/cjs_shims.js"() {
36
+ "use strict";
37
+ }
38
+ });
39
+
33
40
  // src/locales/en.json
34
41
  var en_default;
35
42
  var init_en = __esm({
@@ -484,6 +491,7 @@ var locales, currentLang;
484
491
  var init_i18n = __esm({
485
492
  "src/i18n/index.ts"() {
486
493
  "use strict";
494
+ init_cjs_shims();
487
495
  init_en();
488
496
  init_sv();
489
497
  init_de();
@@ -528,12 +536,15 @@ __export(index_exports, {
528
536
  t: () => t
529
537
  });
530
538
  module.exports = __toCommonJS(index_exports);
539
+ init_cjs_shims();
531
540
 
532
541
  // src/core/regulatory-scanner.ts
542
+ init_cjs_shims();
533
543
  var import_axe_core = __toESM(require("axe-core"));
534
544
  var import_puppeteer = __toESM(require("puppeteer"));
535
545
 
536
546
  // src/core/virtual-dom.ts
547
+ init_cjs_shims();
537
548
  var VirtualDOMBuilder = class {
538
549
  page;
539
550
  constructor(page) {
@@ -624,6 +635,7 @@ var VirtualDOMBuilder = class {
624
635
  };
625
636
 
626
637
  // src/core/html-validator.ts
638
+ init_cjs_shims();
627
639
  var import_html_validate = require("html-validate");
628
640
  var HtmlValidator = class {
629
641
  validator;
@@ -664,7 +676,7 @@ var HtmlValidator = class {
664
676
  // src/core/regulatory-scanner.ts
665
677
  var import_node_fs = require("fs");
666
678
  function getEngineVersion() {
667
- return "2.1.6";
679
+ return "2.1.7";
668
680
  }
669
681
  function getStandardsVersion() {
670
682
  try {
@@ -930,6 +942,7 @@ var RegulatoryScanner = class {
930
942
  };
931
943
 
932
944
  // src/automation/pseudo-automation.ts
945
+ init_cjs_shims();
933
946
  var PseudoAutomationEngine = class {
934
947
  /**
935
948
  * Generera ett Playwright-testskript baserat på en rapport
@@ -1001,15 +1014,16 @@ test('${testName}', async ({ page }) => {
1001
1014
  init_i18n();
1002
1015
 
1003
1016
  // src/reporting/statement-generator.ts
1017
+ init_cjs_shims();
1004
1018
  var import_react = __toESM(require("react"));
1005
1019
  var import_server = require("react-dom/server");
1006
1020
  var import_components = require("@holmdigital/components");
1007
1021
  var import_standards = require("@holmdigital/standards");
1008
1022
  var import_promises = __toESM(require("fs/promises"));
1009
1023
  var import_path = __toESM(require("path"));
1010
- var import_node_url = require("url");
1011
1024
 
1012
1025
  // src/reporting/badge-generator.ts
1026
+ init_cjs_shims();
1013
1027
  var BADGE_COLOR = "00703C";
1014
1028
  var BADGE_BASE_URL = "https://img.shields.io/badge/HolmDigital_Engine";
1015
1029
  function generateBadgeUrl(score) {
@@ -1020,45 +1034,61 @@ function generateBadgeUrl(score) {
1020
1034
  }
1021
1035
 
1022
1036
  // src/reporting/statement-generator.ts
1023
- var import_meta = {};
1024
- var __dirname_esm = typeof __dirname === "undefined" ? import_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url)) : __dirname;
1037
+ var EVALUATION_METHOD = {
1038
+ sv: "Automatiserad granskning via @holmdigital/engine",
1039
+ en: "Automated scan via @holmdigital/engine",
1040
+ no: "Automatisert gjennomgang via @holmdigital/engine",
1041
+ nb: "Automatisert gjennomgang via @holmdigital/engine",
1042
+ fi: "Automaattinen tarkistus @holmdigital/engine-ty\xF6kalulla",
1043
+ da: "Automatiseret gennemgang via @holmdigital/engine",
1044
+ de: "Automatisierte Pr\xFCfung mit @holmdigital/engine",
1045
+ fr: "Analyse automatis\xE9e via @holmdigital/engine",
1046
+ es: "An\xE1lisis automatizado mediante @holmdigital/engine",
1047
+ nl: "Geautomatiseerde controle via @holmdigital/engine",
1048
+ "en-gb": "Automated scan via @holmdigital/engine",
1049
+ "en-us": "Automated scan via @holmdigital/engine",
1050
+ "en-ca": "Automated scan via @holmdigital/engine"
1051
+ };
1052
+ var STATUS_LABELS = {
1053
+ sv: { full: "Fullt ut f\xF6renlig", partial: "Delvis f\xF6renlig", "non-compliant": "Inte f\xF6renlig" },
1054
+ en: { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
1055
+ no: { full: "Helt i samsvar", partial: "Delvis i samsvar", "non-compliant": "Ikke i samsvar" },
1056
+ nb: { full: "Helt i samsvar", partial: "Delvis i samsvar", "non-compliant": "Ikke i samsvar" },
1057
+ fi: { full: "T\xE4ysin saavutettava", partial: "Osittain saavutettava", "non-compliant": "Ei saavutettava" },
1058
+ da: { full: "Fuldt ud i overensstemmelse", partial: "Delvist i overensstemmelse", "non-compliant": "Ikke i overensstemmelse" },
1059
+ de: { full: "Vollst\xE4ndig konform", partial: "Teilweise konform", "non-compliant": "Nicht konform" },
1060
+ fr: { full: "Totalement conforme", partial: "Partiellement conforme", "non-compliant": "Non conforme" },
1061
+ es: { full: "Plenamente conforme", partial: "Parcialmente conforme", "non-compliant": "No conforme" },
1062
+ nl: { full: "Volledig conform", partial: "Gedeeltelijk conform", "non-compliant": "Niet conform" },
1063
+ "en-gb": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
1064
+ "en-us": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" },
1065
+ "en-ca": { full: "Fully compliant", partial: "Partially compliant", "non-compliant": "Non-compliant" }
1066
+ };
1067
+ var RESPONSE_TIME_DEFAULT = {
1068
+ sv: "2 dagar",
1069
+ en: "2 days",
1070
+ no: "2 dager",
1071
+ nb: "2 dager",
1072
+ fi: "2 p\xE4iv\xE4\xE4",
1073
+ da: "2 dage",
1074
+ de: "2 Tage",
1075
+ fr: "2 jours",
1076
+ es: "2 d\xEDas",
1077
+ nl: "2 dagen",
1078
+ "en-gb": "2 days",
1079
+ "en-us": "2 days",
1080
+ "en-ca": "2 days"
1081
+ };
1025
1082
  async function generateStatementContent(result, lang = "en", format = "html", metadata) {
1083
+ const templatePath = import_path.default.join(__dirname, "templates", `${lang}.json`);
1026
1084
  let template;
1027
- const possibleTemplatePaths = [
1028
- import_path.default.join(__dirname_esm, "templates", `${lang}.json`),
1029
- import_path.default.join(__dirname_esm, "../src/reporting/templates", `${lang}.json`),
1030
- import_path.default.join(process.cwd(), "packages/engine/src/reporting/templates", `${lang}.json`)
1031
- ];
1032
- let loaded = false;
1033
- for (const p of possibleTemplatePaths) {
1034
- try {
1035
- const data = await import_promises.default.readFile(p, "utf-8");
1036
- template = JSON.parse(data);
1037
- loaded = true;
1038
- break;
1039
- } catch (e) {
1040
- continue;
1041
- }
1042
- }
1043
- if (!loaded) {
1044
- const fallbackPaths = [
1045
- import_path.default.join(__dirname_esm, "templates", "en.json"),
1046
- import_path.default.join(__dirname_esm, "../src/reporting/templates", "en.json"),
1047
- import_path.default.join(process.cwd(), "packages/engine/src/reporting/templates", "en.json")
1048
- ];
1049
- for (const p of fallbackPaths) {
1050
- try {
1051
- const data = await import_promises.default.readFile(p, "utf-8");
1052
- template = JSON.parse(data);
1053
- loaded = true;
1054
- break;
1055
- } catch (e) {
1056
- continue;
1057
- }
1058
- }
1059
- }
1060
- if (!loaded || !template) {
1061
- throw new Error(`Accessibility statement templates missing. Looked in: ${possibleTemplatePaths.join(", ")}`);
1085
+ try {
1086
+ const data = await import_promises.default.readFile(templatePath, "utf-8");
1087
+ template = JSON.parse(data);
1088
+ } catch {
1089
+ throw new Error(
1090
+ `Accessibility statement template not found for locale "${lang}". Expected file at: ${templatePath}`
1091
+ );
1062
1092
  }
1063
1093
  let complianceLevel = "full";
1064
1094
  if (result.stats.critical > 0 || result.legalSummary && result.legalSummary.eaaDeadlineViolations > 0) {
@@ -1080,6 +1110,9 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1080
1110
  if (result.url.endsWith(".dk")) country = "DK";
1081
1111
  if (result.url.endsWith(".fi")) country = "FI";
1082
1112
  if (result.url.endsWith(".de")) country = "DE";
1113
+ if (result.url.endsWith(".uk")) country = "GB";
1114
+ if (result.url.endsWith(".us")) country = "US";
1115
+ if (result.url.endsWith(".ca")) country = "CA";
1083
1116
  }
1084
1117
  const sector = "public";
1085
1118
  let logoUrl;
@@ -1109,7 +1142,7 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1109
1142
  complianceLevel,
1110
1143
  lastReviewDate: /* @__PURE__ */ new Date(),
1111
1144
  assessmentDate: /* @__PURE__ */ new Date(),
1112
- evaluationMethod: lang === "sv" ? "Automatiserad granskning via @holmdigital/engine" : "Automated Scan via @holmdigital/engine",
1145
+ evaluationMethod: EVALUATION_METHOD[lang] || EVALUATION_METHOD["en"],
1113
1146
  generatorTool: {
1114
1147
  name: "HolmDigital Regulatory Engine",
1115
1148
  url: "https://holmdigital.se"
@@ -1117,7 +1150,7 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1117
1150
  logoUrl,
1118
1151
  contactEmail: metadata?.contactEmail || "hej@holmdigital.se",
1119
1152
  phoneNumber: metadata?.phoneNumber || "070-123 45 67",
1120
- responseTime: metadata?.responseTime || (lang === "sv" ? "2 dagar" : "2 days"),
1153
+ responseTime: metadata?.responseTime || RESPONSE_TIME_DEFAULT[lang] || RESPONSE_TIME_DEFAULT["en"],
1121
1154
  nonComplianceItems,
1122
1155
  locale: lang,
1123
1156
  badgeUrl: generateBadgeUrl(result.score) || void 0,
@@ -1143,10 +1176,11 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1143
1176
  </html>`;
1144
1177
  } else {
1145
1178
  const dateStr = props.lastReviewDate.toISOString().split("T")[0];
1179
+ const labels = STATUS_LABELS[lang] || STATUS_LABELS["en"];
1146
1180
  const statusMap = {
1147
- "full": lang === "sv" ? "Fullt ut f\xF6renlig" : lang === "no" || lang === "nb" ? "Helt i samsvar" : lang === "da" ? "Fuldt ud i overensstemmelse" : "Fully compliant",
1148
- "partial": lang === "sv" ? "Delvis f\xF6renlig" : lang === "no" || lang === "nb" ? "Delvis i samsvar" : lang === "da" ? "Delvist i overensstemmelse" : "Partially compliant",
1149
- "non-compliant": lang === "sv" ? "Inte f\xF6renlig" : lang === "no" || lang === "nb" ? "Ikke i samsvar" : lang === "da" ? "Ikke i overensstemmelse" : "Non-compliant"
1181
+ "full": labels["full"],
1182
+ "partial": labels["partial"],
1183
+ "non-compliant": labels["non-compliant"]
1150
1184
  };
1151
1185
  const substitutions = {
1152
1186
  statusString: statusMap[complianceLevel],
@@ -1158,6 +1192,8 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1158
1192
  "{<e-postadress>}": props.contactEmail || "",
1159
1193
  "{<e-mailosoite>}": props.contactEmail || "",
1160
1194
  "{<e-mailadresse>}": props.contactEmail || "",
1195
+ "{<e-mailadres>}": props.contactEmail || "",
1196
+ "{<e-postadresse>}": props.contactEmail || "",
1161
1197
  "{<e-mail address>}": props.contactEmail || "",
1162
1198
  "{<email address>}": props.contactEmail || "",
1163
1199
  "{<telefonnummer>}": props.phoneNumber || "",
@@ -1177,6 +1213,7 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1177
1213
  "{<assessment date>}": dateStr,
1178
1214
  "{<uppdateringsdatum>}": dateStr,
1179
1215
  "{<oppdateringsdato>}": dateStr,
1216
+ "{<opdateringsdato>}": dateStr,
1180
1217
  "{<p\xE4ivitysp\xE4iv\xE4>}": dateStr,
1181
1218
  "{<updatedatum>}": dateStr,
1182
1219
  "{<aktualisierungsdatum>}": dateStr,
@@ -1190,13 +1227,18 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1190
1227
  "{<ver\xF6ffentlichungsdatum>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
1191
1228
  "{<date_publication>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
1192
1229
  "{<fecha_publicacion>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
1230
+ "{<offentligg\xF8relsesdato>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
1193
1231
  "{<publish date>}": props.publishDate?.toISOString().split("T")[0] || "2024-01-01",
1194
1232
  "{<metod>}": props.evaluationMethod || "Automated Scan",
1195
1233
  "{<metodi>}": props.evaluationMethod || "Automated Scan",
1196
1234
  "{<methode>}": props.evaluationMethod || "Automated Scan",
1235
+ "{<metode>}": props.evaluationMethod || "Automated Scan",
1236
+ "{<metodo>}": props.evaluationMethod || "Automated Scan",
1237
+ "{<m\xE9thode>}": props.evaluationMethod || "Automated Scan",
1197
1238
  "{<m\xE9todo>}": props.evaluationMethod || "Automated Scan",
1198
1239
  "{<method>}": props.evaluationMethod || "Automated Scan",
1199
1240
  "{<extern akt\xF6r>}": props.generatorTool?.name || "HolmDigital Engine",
1241
+ "{<ekstern akt\xF8r>}": props.generatorTool?.name || "HolmDigital Engine",
1200
1242
  "{<ekstern aktor>}": props.generatorTool?.name || "HolmDigital Engine",
1201
1243
  "{<ulkoinen taho>}": props.generatorTool?.name || "HolmDigital Engine",
1202
1244
  "{<externe partij>}": props.generatorTool?.name || "HolmDigital Engine",
@@ -1228,6 +1270,9 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1228
1270
  }
1229
1271
  return content2;
1230
1272
  });
1273
+ processed = processed.replace(/\{<[^>]+>\}/g, (match) => {
1274
+ return substitutions[match] !== void 0 ? substitutions[match] : match;
1275
+ });
1231
1276
  processed = processed.replace(/\{([^{}]*?)\}/g, (_match, content2) => {
1232
1277
  const parts = content2.split("/");
1233
1278
  if (parts.length >= 2) {
@@ -1236,8 +1281,7 @@ async function generateStatementContent(result, lang = "en", format = "html", me
1236
1281
  if (complianceLevel === "non-compliant") idx = parts.length > 2 ? 2 : 1;
1237
1282
  return parts[idx].trim();
1238
1283
  }
1239
- const key = `{${content2}}`;
1240
- return substitutions[key] !== void 0 ? substitutions[key] : _match;
1284
+ return _match;
1241
1285
  });
1242
1286
  return processed;
1243
1287
  };
package/dist/index.mjs CHANGED
@@ -5,13 +5,13 @@ import {
5
5
  generateStatement,
6
6
  generateStatementContent,
7
7
  getEngineVersion
8
- } from "./chunk-BR2T76XC.mjs";
8
+ } from "./chunk-BXSPTSSZ.mjs";
9
9
  import {
10
10
  getCurrentLang,
11
11
  setLanguage,
12
12
  t
13
- } from "./chunk-PIGYYEJV.mjs";
14
- import "./chunk-Y6FXYEAI.mjs";
13
+ } from "./chunk-MGIEQZMZ.mjs";
14
+ import "./chunk-DIBTSSLZ.mjs";
15
15
  export {
16
16
  PseudoAutomationEngine,
17
17
  RegulatoryScanner,
@@ -1,4 +1,4 @@
1
- import "./chunk-Y6FXYEAI.mjs";
1
+ import "./chunk-DIBTSSLZ.mjs";
2
2
 
3
3
  // src/reporting/junit-generator.ts
4
4
  function generateJUnitXML(result) {
@@ -0,0 +1,39 @@
1
+ {
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 the Accessible Canada Act and the Accessibility for Ontarians with Disabilities Act, any known accessibility issues, and how you can report problems so that we can fix them.",
4
+ "sections": [
5
+ {
6
+ "id": "how-accessible",
7
+ "title": "How accessible is the website?",
8
+ "content": "{There are no known accessibility issues with this website./We know some parts of this website aren't fully accessible. See the section on non-accessible content below for more information./We know some parts of this website aren't fully accessible. See the section on non-accessible content below for more information.}"
9
+ },
10
+ {
11
+ "id": "what-to-do",
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 the accessibility regulations 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
+ },
15
+ {
16
+ "id": "reporting",
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 the accessibility regulations, contact us and let us know about the problem."
19
+ },
20
+ {
21
+ "id": "enforcement",
22
+ "title": "Enforcement procedure",
23
+ "content": "The {<enforcement_body>} is responsible for enforcing the Accessible Canada Act. 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 Accessible Canada Act or the Accessibility for Ontarians with Disabilities Act, or if your request for accessible content has not been handled appropriately."
24
+ },
25
+ {
26
+ "id": "technical",
27
+ "title": "Technical information about this website's accessibility",
28
+ "content": "{This website is fully compliant with the Accessible Canada Act and the Accessibility for Ontarians with Disabilities Act./This website is partially compliant with the Accessible Canada Act and the Accessibility for Ontarians with Disabilities Act, due to the non-compliances listed below./This website is not compliant with the Accessible Canada Act and the Accessibility for Ontarians with Disabilities Act. The non-accessible sections are listed below.}"
29
+ },
30
+ {
31
+ "content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with the accessibility regulations**\n\n{<issues>}\n]"
32
+ },
33
+ {
34
+ "id": "testing",
35
+ "title": "How we tested this website",
36
+ "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 website was published on {<publish date>}.\n\nThe statement was last updated on {<update date>}."
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,39 @@
1
+ {
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 the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018, any known accessibility issues, and how you can report problems so that we can fix them.",
4
+ "sections": [
5
+ {
6
+ "id": "how-accessible",
7
+ "title": "How accessible is the website?",
8
+ "content": "{There are no known accessibility issues with this website./We know some parts of this website aren't fully accessible. See the section on non-accessible content below for more information./We know some parts of this website aren't fully accessible. See the section on non-accessible content below for more information.}"
9
+ },
10
+ {
11
+ "id": "what-to-do",
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 the accessibility regulations 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
+ },
15
+ {
16
+ "id": "reporting",
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 the accessibility regulations, contact us and let us know about the problem."
19
+ },
20
+ {
21
+ "id": "enforcement",
22
+ "title": "Enforcement procedure",
23
+ "content": "The {<enforcement_body>} is responsible for enforcing the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018. 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
+ },
25
+ {
26
+ "id": "technical",
27
+ "title": "Technical information about this website's accessibility",
28
+ "content": "{This website is fully compliant with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018./This website is partially compliant with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018, due to the non-compliances listed below./This website is not compliant with the Public Sector Bodies (Websites and Mobile Applications) (No. 2) Accessibility Regulations 2018. The non-accessible sections are listed below.}"
29
+ },
30
+ {
31
+ "content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with the accessibility regulations**\n\n{<issues>}\n]"
32
+ },
33
+ {
34
+ "id": "testing",
35
+ "title": "How we tested this website",
36
+ "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 website was published on {<publish date>}.\n\nThe statement was last updated on {<update date>}."
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,39 @@
1
+ {
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 Section 508 of the Rehabilitation Act, any known accessibility issues, and how you can report problems so that we can fix them.",
4
+ "sections": [
5
+ {
6
+ "id": "how-accessible",
7
+ "title": "How accessible is the website?",
8
+ "content": "{There are no known accessibility issues with this website./We know some parts of this website aren't fully accessible. See the section on non-accessible content below for more information./We know some parts of this website aren't fully accessible. See the section on non-accessible content below for more information.}"
9
+ },
10
+ {
11
+ "id": "what-to-do",
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 the accessibility regulations 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
+ },
15
+ {
16
+ "id": "reporting",
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 the accessibility regulations, contact us and let us know about the problem."
19
+ },
20
+ {
21
+ "id": "enforcement",
22
+ "title": "Enforcement procedure",
23
+ "content": "The {<enforcement_body>} is responsible for enforcing Section 508 of the Rehabilitation Act and the Americans with Disabilities Act (ADA). 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 Section 508 or the ADA, or if your request for accessible content has not been handled appropriately."
24
+ },
25
+ {
26
+ "id": "technical",
27
+ "title": "Technical information about this website's accessibility",
28
+ "content": "{This website is fully compliant with Section 508 of the Rehabilitation Act./This website is partially compliant with Section 508 of the Rehabilitation Act, due to the non-compliances listed below./This website is not compliant with Section 508 of the Rehabilitation Act. The non-accessible sections are listed below.}"
29
+ },
30
+ {
31
+ "content": "The content described below is, in one way or another, not fully accessible.\n\n[\n**Non-compliance with the accessibility regulations**\n\n{<issues>}\n]"
32
+ },
33
+ {
34
+ "id": "testing",
35
+ "title": "How we tested this website",
36
+ "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 website was published on {<publish date>}.\n\nThe statement was last updated on {<update date>}."
37
+ }
38
+ ]
39
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holmdigital/engine",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
File without changes