@webability/core 1.3.0 → 1.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.
@@ -59,6 +59,15 @@ interface DetectedIssue {
59
59
  needsReview?: boolean;
60
60
  /** Why this finding needs review — surfaced to MCP/SDK consumers. */
61
61
  reviewReason?: string;
62
+ /**
63
+ * Optional exact user-facing message. Use when the generic
64
+ * attribute/currentValue template ("missing X", "X is \"Y\"") would state
65
+ * something false or fabricated — e.g. a weak button name whose name comes
66
+ * from text content has no missing aria-label to report (persona round 3,
67
+ * P069: 'weak button name: missing aria-label' on a named control).
68
+ * formatMessage prefers this verbatim when present.
69
+ */
70
+ message?: string;
62
71
  }
63
72
  /** Every fix detector must implement this interface. */
64
73
  interface FixDetector {
@@ -59,6 +59,15 @@ interface DetectedIssue {
59
59
  needsReview?: boolean;
60
60
  /** Why this finding needs review — surfaced to MCP/SDK consumers. */
61
61
  reviewReason?: string;
62
+ /**
63
+ * Optional exact user-facing message. Use when the generic
64
+ * attribute/currentValue template ("missing X", "X is \"Y\"") would state
65
+ * something false or fabricated — e.g. a weak button name whose name comes
66
+ * from text content has no missing aria-label to report (persona round 3,
67
+ * P069: 'weak button name: missing aria-label' on a named control).
68
+ * formatMessage prefers this verbatim when present.
69
+ */
70
+ message?: string;
62
71
  }
63
72
  /** Every fix detector must implement this interface. */
64
73
  interface FixDetector {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webability/core",
3
- "version": "1.3.0",
4
- "description": "Accessibility scanner engine \u2014 WCAG 2.2 AA/AAA compliance testing with 200+ rules",
3
+ "version": "1.4.0",
4
+ "description": "Accessibility scanner engine — WCAG 2.2 AA/AAA compliance testing with 200+ rules",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
7
7
  "module": "./dist/index.js",
@@ -16,21 +16,17 @@
16
16
  "import": "./dist/dom.js",
17
17
  "require": "./dist/dom.cjs",
18
18
  "types": "./dist/dom.d.ts"
19
+ },
20
+ "./playwright": {
21
+ "import": "./dist/playwright.js",
22
+ "require": "./dist/playwright.cjs",
23
+ "types": "./dist/playwright.d.ts"
19
24
  }
20
25
  },
21
26
  "files": [
22
27
  "dist",
23
28
  "NOTICES.md"
24
29
  ],
25
- "scripts": {
26
- "build": "npm run gen:dom-kernel && tsup",
27
- "dev": "tsup --watch",
28
- "test": "vitest run",
29
- "test:watch": "vitest",
30
- "typecheck": "tsc --noEmit",
31
- "clean": "rm -rf dist",
32
- "gen:dom-kernel": "node --experimental-strip-types scripts/gen-dom-kernel.mjs"
33
- },
34
30
  "keywords": [
35
31
  "a11y",
36
32
  "abilyo",
@@ -71,5 +67,14 @@
71
67
  "engines": {
72
68
  "node": ">=18"
73
69
  },
74
- "homepage": "https://abilyo.com"
75
- }
70
+ "homepage": "https://abilyo.com",
71
+ "scripts": {
72
+ "build": "npm run gen:dom-kernel && tsup",
73
+ "dev": "tsup --watch",
74
+ "test": "vitest run",
75
+ "test:watch": "vitest",
76
+ "typecheck": "tsc --noEmit",
77
+ "clean": "rm -rf dist",
78
+ "gen:dom-kernel": "node scripts/gen-dom-kernel.mjs"
79
+ }
80
+ }