gbu-accessibility-package 3.1.3 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "gbu-accessibility-package",
3
- "version": "3.1.3",
3
+ "version": "3.2.1",
4
4
  "description": "Comprehensive accessibility fixes for HTML files. Smart context-aware alt text generation, form labels, button names, link names, landmarks, heading analysis, and WCAG-compliant role attributes. Covers major axe DevTools issues with individual fix modes.",
5
5
  "main": "index.js",
6
6
  "bin": {
7
- "gbu-a11y": "./cli.js",
8
- "accessibility-fixer": "./cli.js"
7
+ "gbu-a11y": "cli.js",
8
+ "accessibility-fixer": "cli.js"
9
9
  },
10
10
  "scripts": {
11
11
  "start": "node cli.js",
@@ -20,11 +20,15 @@
20
20
  "links-only": "node cli.js --links-only",
21
21
  "landmarks-only": "node cli.js --landmarks-only",
22
22
  "headings-only": "node cli.js --headings-only",
23
+ "links-check": "node cli.js --links-check",
23
24
  "cleanup-only": "node cli.js --cleanup-only",
24
25
  "no-backup": "node cli.js --no-backup",
25
26
  "cleanup-backups": "find . -name '*.backup' -type f -delete",
26
27
  "test": "node test-package.js",
28
+ "test-enhanced-alt": "node test-enhanced-alt.js",
27
29
  "demo": "node cli.js --dry-run demo",
30
+ "demo-enhanced": "node cli.js --enhanced-alt --dry-run demo",
31
+ "demo-creative": "node cli.js --enhanced-alt --alt-creativity creative --include-emotions --dry-run demo",
28
32
  "prepublishOnly": "npm run test"
29
33
  },
30
34
  "keywords": [
@@ -57,7 +61,7 @@
57
61
  "license": "MIT",
58
62
  "repository": {
59
63
  "type": "git",
60
- "url": "https://github.com/dangpv94/gbu-accessibility-tool.git"
64
+ "url": "git+https://github.com/dangpv94/gbu-accessibility-tool.git"
61
65
  },
62
66
  "homepage": "https://github.com/dangpv94/gbu-accessibility-tool#readme",
63
67
  "bugs": {
@@ -74,6 +78,7 @@
74
78
  "CHANGELOG.md",
75
79
  "QUICK_START.md",
76
80
  "PACKAGE_SUMMARY.md",
81
+ "ENHANCED_ALT_FEATURES.md",
77
82
  "LICENSE"
78
83
  ],
79
84
  "dependencies": {
@@ -1,44 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Advanced Accessibility Test</title>
6
- </head>
7
- <body>
8
- <h1>Advanced Accessibility Test</h1>
9
-
10
- <!-- Form issues -->
11
- <form>
12
- <input type="text" placeholder="Name">
13
- <input type="email" id="email">
14
- <input type="password">
15
- <input type="submit">
16
- </form>
17
-
18
- <!-- Button issues -->
19
- <button></button>
20
- <button onclick="alert('test')"></button>
21
- <input type="button">
22
-
23
- <!-- Link issues -->
24
- <a href="/home"></a>
25
- <a href="/more">Click here</a>
26
- <a href="/read">Read more</a>
27
- <a href="/image"><img src="icon.png"></a>
28
-
29
- <!-- Heading issues -->
30
- <h3>Skipped h2</h3>
31
- <h1>Second h1</h1>
32
- <h4></h4>
33
-
34
- <!-- Landmark issues -->
35
- <div class="content">
36
- <p>Main content without landmark</p>
37
- </div>
38
-
39
- <ul class="navigation">
40
- <li><a href="/home">Home</a></li>
41
- <li><a href="/about">About</a></li>
42
- </ul>
43
- </body>
44
- </html>
@@ -1,18 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Backup Test</title>
6
- </head>
7
- <body>
8
- <h1>Backup Test File</h1>
9
-
10
- <!-- This will be fixed -->
11
- <img src="test.jpg" alt="Test image" role="img" aria-label="Test image">
12
-
13
- <!-- This will also be fixed -->
14
- <a href="/home" role="link">Home Link</a>
15
-
16
- <p>This file is used to test backup functionality.</p>
17
- </body>
18
- </html>
@@ -1,13 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>No Backup Test</title>
6
- </head>
7
- <body>
8
- <h1>No Backup Test File</h1>
9
-
10
- <img src="test2.jpg" alt="Test image 2" role="img" aria-label="Test image 2">
11
- <a href="/about" role="link">About Link</a>
12
- </body>
13
- </html>
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Explicit Backup Test</title>
6
- </head>
7
- <body>
8
- <h1>Explicit Backup Test File</h1>
9
-
10
- <img src="test3.jpg" alt="Test image 3" role="img" aria-label="Test image 3">
11
- </body>
12
- </html>
@@ -1,21 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>Comprehensive Test</title>
6
- </head>
7
- <body>
8
- <h1>Comprehensive Test File</h1>
9
-
10
- <!-- Missing alt -->
11
- <img src="test.jpg">
12
-
13
- <!-- Missing role -->
14
- <a href="/home">Home</a>
15
-
16
- <!-- Duplicate roles -->
17
- <img src="dup.jpg" alt="Duplicate" role="img" role="img">
18
-
19
- <p>This tests comprehensive mode as default.</p>
20
- </body>
21
- </html>
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>No Backup Test</title>
6
- </head>
7
- <body>
8
- <h1>No Backup Test</h1>
9
- <img src="test.jpg" alt="Test image" role="img" aria-label="Test image">
10
- <a href="/home" role="link">Home</a>
11
- </body>
12
- </html>
@@ -1,12 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="UTF-8">
5
- <title>No Backup Test</title>
6
- </head>
7
- <body>
8
- <h1>No Backup Test</h1>
9
- <img src="test.jpg" alt="Test image">
10
- <a href="/home">Home</a>
11
- </body>
12
- </html>