accessibility-plugin-react 1.0.0 → 2.0.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,63 +1,101 @@
1
1
  {
2
2
  "name": "accessibility-plugin-react",
3
- "version": "1.0.0",
4
- "description": "A customizable, accessible, and easy-to-integrate React accessibility widget.",
5
- "author": "Praboth Charith",
6
- "license": "ISC",
7
- "type": "module",
8
- "main": "dist/index.umd.js",
9
- "module": "dist/index.es.js",
3
+ "version": "2.0.1",
4
+ "description": "A composable React display-preference widget with a clean light design, persistent settings and movable accessible controls.",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
10
7
  "types": "dist/index.d.ts",
11
- "files": [
12
- "dist"
13
- ],
14
8
  "exports": {
15
9
  ".": {
16
- "import": "./dist/index.es.js",
17
- "require": "./dist/index.umd.js"
10
+ "import": {
11
+ "types": "./dist/index.d.mts",
12
+ "default": "./dist/index.mjs"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
17
+ }
18
18
  },
19
+ "./dist/style.css": "./dist/style.css",
19
20
  "./style.css": "./dist/style.css"
20
21
  },
22
+ "files": [
23
+ "dist",
24
+ "LICENSE",
25
+ "docs"
26
+ ],
21
27
  "scripts": {
22
- "dev": "vite",
23
- "build": "tsc -b && vite build",
24
- "lint": "eslint .",
25
- "preview": "vite preview"
26
- },
27
- "dependencies": {
28
- "@radix-ui/react-dialog": "^1.1.15",
29
- "@radix-ui/react-popover": "^1.1.15",
30
- "@radix-ui/react-slider": "^1.3.6",
31
- "@radix-ui/react-slot": "^1.2.4",
32
- "@radix-ui/react-switch": "^1.2.6",
33
- "@radix-ui/react-tooltip": "^1.2.8",
34
- "clsx": "^2.1.1",
35
- "framer-motion": "^12.23.25",
36
- "lucide-react": "^0.555.0",
37
- "tailwind-merge": "^3.4.0"
28
+ "build": "tsup && npm run build:css",
29
+ "build:css": "node scripts/build-css.mjs",
30
+ "dev": "tsup --watch",
31
+ "lint": "eslint src tests scripts --max-warnings 0",
32
+ "typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.tests.json",
33
+ "test": "vitest run",
34
+ "test:watch": "vitest",
35
+ "prepublishOnly": "npm run build",
36
+ "validate": "npm run typecheck && npm run lint && npm test && npm run build",
37
+ "pack:check": "node scripts/check-package.mjs",
38
+ "test:browser": "playwright test",
39
+ "test:consumers": "npm run build && npm run pack:check && node scripts/prepare-consumers.mjs",
40
+ "example": "vite examples",
41
+ "format": "prettier --write src tests scripts examples docs README.md AGENTS.md CHANGELOG.md *.ts *.json *.mjs .github",
42
+ "format:check": "prettier --check src tests scripts examples docs README.md AGENTS.md CHANGELOG.md *.ts *.json *.mjs .github"
38
43
  },
39
44
  "peerDependencies": {
40
- "react": "^19.2.0",
41
- "react-dom": "^19.2.0"
45
+ "react": "^18.3.1 || ^19.0.0",
46
+ "react-dom": "^18.3.1 || ^19.0.0"
42
47
  },
43
48
  "devDependencies": {
44
- "@tailwindcss/postcss": "^4.1.17",
45
- "@eslint/js": "^9.39.1",
46
- "@types/node": "^24.10.1",
47
- "@types/react": "^19.2.5",
48
- "@types/react-dom": "^19.2.3",
49
- "@vitejs/plugin-react": "^5.1.1",
50
- "autoprefixer": "^10.4.22",
51
- "eslint": "^9.39.1",
52
- "eslint-plugin-react-hooks": "^7.0.1",
53
- "eslint-plugin-react-refresh": "^0.4.24",
54
- "globals": "^16.5.0",
55
- "postcss": "^8.5.6",
56
- "tailwindcss": "^4.1.17",
57
- "tailwindcss-animate": "^1.0.7",
58
- "typescript": "~5.9.3",
59
- "typescript-eslint": "^8.46.4",
60
- "vite": "^7.2.4",
61
- "vite-plugin-dts": "^4.5.4"
49
+ "@axe-core/playwright": "^4.13.0",
50
+ "@eslint/js": "^10.0.1",
51
+ "@playwright/test": "^1.64.0",
52
+ "@testing-library/jest-dom": "^6.6.3",
53
+ "@testing-library/react": "^16.1.0",
54
+ "@types/node": "^22.20.5",
55
+ "@types/react": "^18.3.12",
56
+ "@types/react-dom": "^18.3.1",
57
+ "eslint": "^10.12.0",
58
+ "eslint-plugin-react-hooks": "^7.1.1",
59
+ "jsdom": "^25.0.1",
60
+ "prettier": "^3.9.10",
61
+ "react": "^18.3.1",
62
+ "react-dom": "^18.3.1",
63
+ "tsup": "^8.3.5",
64
+ "typescript": "^5.7.2",
65
+ "typescript-eslint": "^8.71.1",
66
+ "vite": "^7.3.7",
67
+ "vitest": "^4.1.11"
68
+ },
69
+ "keywords": [
70
+ "accessibility",
71
+ "a11y",
72
+ "react",
73
+ "widget",
74
+ "plugin",
75
+ "font-size",
76
+ "contrast",
77
+ "grayscale",
78
+ "invert-colors"
79
+ ],
80
+ "author": "Praboth Charith",
81
+ "license": "ISC",
82
+ "repository": {
83
+ "type": "git",
84
+ "url": "git+https://github.com/prabothcharith/accessibility-react.git"
85
+ },
86
+ "sideEffects": [
87
+ "**/*.css"
88
+ ],
89
+ "engines": {
90
+ "node": ">=22.13"
91
+ },
92
+ "homepage": "https://github.com/prabothcharith/accessibility-react#readme",
93
+ "bugs": {
94
+ "url": "https://github.com/prabothcharith/accessibility-react/issues"
95
+ },
96
+ "publishConfig": {
97
+ "registry": "https://registry.npmjs.org/",
98
+ "access": "public",
99
+ "tag": "latest"
62
100
  }
63
101
  }