@hex2r/react-announcer
Version:
Accessible announcer component for React apps using the Context API. Renders live-region messages for screen readers and provides a simple hook for dispatching announcements from anywhere in your component tree.
72 lines (71 loc) • 1.83 kB
JSON
{
"name": "@hex2r/react-announcer",
"version": "0.1.2",
"type": "module",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"peerDependencies": {
"react": "^18.3.1",
"uuid": "^9.0.0"
},
"scripts": {
"build:rollup": "rollup --config rollup.config.js --bundleConfigAsCjs",
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
"preview": "vite preview",
"test": "vitest",
"test:ui": "vitest --ui"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@eslint/js": "^9.30.1",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@testing-library/jest-dom": "^6.6.4",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^24.1.0",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.6.0",
"@vitest/ui": "^3.2.4",
"eslint": "^9.30.1",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.3.0",
"jsdom": "^26.1.0",
"prettier": "^3.6.2",
"rollup": "^4.46.2",
"rollup-plugin-dts": "^6.2.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"tslib": "^2.8.1",
"typescript": "~5.8.3",
"typescript-eslint": "^8.35.1",
"uuid": "^11.1.0",
"vite": "^7.0.4",
"vitest": "^3.2.4"
},
"keywords": [
"react",
"accessibility",
"a11y",
"aria-live",
"screen-reader",
"announcer",
"announcement-region",
"sr-only",
"announcement",
"accessibility-hook"
]
}