Files
ubunteroz 6f1f8cdced
Release Accessibility Widget / release (push) Waiting to run
feat: configurable default language and WAI-ARIA accessible name
widget.js:
- add defaultLanguage config (honored on first visit over browser detect)
- compute screen reader text via ARIA order: aria-labelledby -> aria-label
  -> contents -> alt -> title
- extract getSpeechLang() helper (was duplicated in handleFocus + toggle)
- use optional chaining for ACCESSIBILITY_WIDGET_CONFIG lookup

package.json (fork metadata):
- license: GPL -> GPL-3.0-or-later (valid SPDX)
- engines: node >=12 -> >=14 (optional chaining)
- add homepage, drop empty dep objects and non-standard cdn field
2026-07-01 08:33:50 +08:00

68 lines
1.8 KiB
JSON

{
"name": "@invisi/accessibility-widgets",
"version": "2.0.14",
"description": "A comprehensive, lightweight accessibility widget that enhances web accessibility for all users. Provides multiple accessibility features including screen reader support, voice control, high contrast mode, and more.",
"main": "widget.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "echo \"No build process required - single file widget\"",
"dev": "python -m http.server 8000 || python3 -m http.server 8000 || npx http-server -p 8000",
"lint": "echo \"No linting configured\"",
"prepublishOnly": "echo \"Preparing package for publishing...\""
},
"keywords": [
"accessibility",
"a11y",
"widget",
"wcag",
"ada",
"section508",
"screen-reader",
"voice-control",
"high-contrast",
"dyslexia",
"colorblind",
"disabilities",
"inclusive",
"web-accessibility",
"javascript",
"frontend",
"ui",
"ux",
"assistive-technology"
],
"author": {
"name": "Surya Handika Putratama",
"email": "ubunteroz@gmail.com"
},
"license": "GPL-3.0-or-later",
"repository": {
"type": "git",
"url": "git+https://git.invisi.co.id/invisi/accessibility-widgets"
},
"bugs": {
"url": "https://git.invisi.co.id/invisi/accessibility-widgets/issues"
},
"homepage": "https://git.invisi.co.id/invisi/accessibility-widgets",
"files": [
"widget.js",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=14.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not dead",
"not ie 11"
],
"funding": {
"type": "github",
"url": "https://github.com/sponsors/sinanisler"
},
"jsdelivr": "widget.js",
"unpkg": "widget.js",
"cdn": "widget.js"
}