@sc4rfurryx/proteusjs 1.1.0 → 2.0.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.
Files changed (62) hide show
  1. package/README.md +684 -899
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/modules/a11y-audit.d.ts +2 -10
  4. package/dist/modules/a11y-audit.esm.js +31 -476
  5. package/dist/modules/a11y-audit.esm.js.map +1 -1
  6. package/dist/modules/a11y-primitives.d.ts +9 -42
  7. package/dist/modules/a11y-primitives.esm.js +70 -401
  8. package/dist/modules/a11y-primitives.esm.js.map +1 -1
  9. package/dist/modules/anchor.d.ts +2 -1
  10. package/dist/modules/anchor.esm.js +3 -2
  11. package/dist/modules/anchor.esm.js.map +1 -1
  12. package/dist/modules/container.d.ts +1 -1
  13. package/dist/modules/container.esm.js +34 -34
  14. package/dist/modules/container.esm.js.map +1 -1
  15. package/dist/modules/perf.d.ts +1 -1
  16. package/dist/modules/perf.esm.js +2 -2
  17. package/dist/modules/popover.d.ts +1 -1
  18. package/dist/modules/popover.esm.js +2 -2
  19. package/dist/modules/scroll.d.ts +1 -1
  20. package/dist/modules/scroll.esm.js +14 -14
  21. package/dist/modules/scroll.esm.js.map +1 -1
  22. package/dist/modules/transitions.d.ts +1 -1
  23. package/dist/modules/transitions.esm.js +12 -12
  24. package/dist/modules/transitions.esm.js.map +1 -1
  25. package/dist/modules/typography.d.ts +1 -1
  26. package/dist/modules/typography.esm.js +2 -2
  27. package/dist/proteus.cjs.js +163 -941
  28. package/dist/proteus.cjs.js.map +1 -1
  29. package/dist/proteus.d.ts +23 -68
  30. package/dist/proteus.esm.js +163 -941
  31. package/dist/proteus.esm.js.map +1 -1
  32. package/dist/proteus.esm.min.js +2 -2
  33. package/dist/proteus.esm.min.js.map +1 -1
  34. package/dist/proteus.js +163 -941
  35. package/dist/proteus.js.map +1 -1
  36. package/dist/proteus.min.js +2 -2
  37. package/dist/proteus.min.js.map +1 -1
  38. package/package.json +44 -7
  39. package/src/adapters/react.ts +607 -264
  40. package/src/adapters/svelte.ts +321 -321
  41. package/src/adapters/vue.ts +268 -268
  42. package/src/core/ProteusJS.ts +6 -6
  43. package/src/index.ts +3 -3
  44. package/src/modules/a11y-audit/index.ts +84 -608
  45. package/src/modules/a11y-primitives/index.ts +152 -554
  46. package/src/modules/anchor/index.ts +259 -257
  47. package/src/modules/container/index.ts +230 -230
  48. package/src/modules/perf/index.ts +291 -291
  49. package/src/modules/popover/index.ts +238 -238
  50. package/src/modules/scroll/index.ts +251 -251
  51. package/src/modules/transitions/index.ts +145 -145
  52. package/src/modules/typography/index.ts +239 -239
  53. package/src/utils/version.ts +1 -1
  54. package/dist/adapters/react.d.ts +0 -139
  55. package/dist/adapters/react.esm.js +0 -848
  56. package/dist/adapters/react.esm.js.map +0 -1
  57. package/dist/adapters/svelte.d.ts +0 -181
  58. package/dist/adapters/svelte.esm.js +0 -908
  59. package/dist/adapters/svelte.esm.js.map +0 -1
  60. package/dist/adapters/vue.d.ts +0 -205
  61. package/dist/adapters/vue.esm.js +0 -872
  62. package/dist/adapters/vue.esm.js.map +0 -1
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@sc4rfurryx/proteusjs",
3
- "version": "1.1.0",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
+ "workspaces": [
6
+ "packages/*"
7
+ ],
5
8
  "description": "The Modern Web Development Framework for Accessible, Responsive, and High-Performance Applications. Intelligent container queries, fluid typography, WCAG compliance, and performance optimization.",
6
9
  "main": "dist/proteus.js",
7
10
  "module": "dist/proteus.esm.js",
@@ -74,23 +77,56 @@
74
77
  "build": "rollup -c rollup.config.js",
75
78
  "build:prod": "cross-env NODE_ENV=production rollup -c rollup.config.js",
76
79
  "build:watch": "rollup -c rollup.config.js --watch",
80
+ "build:packages": "npm run build:router && npm run build:transitions && npm run build:layer && npm run build:schedule && npm run build:pwa && npm run build:speculate",
81
+ "build:router": "cd packages/router && npm run build",
82
+ "build:transitions": "cd packages/transitions && npm run build",
83
+ "build:layer": "cd packages/layer && npm run build",
84
+ "build:schedule": "cd packages/schedule && npm run build",
85
+ "build:pwa": "cd packages/pwa && npm run build",
86
+ "build:speculate": "cd packages/speculate && npm run build",
87
+ "build:all": "npm run build:prod && npm run build:packages",
77
88
  "dev": "vite serve examples",
78
89
  "test": "vitest",
79
90
  "test:ui": "vitest --ui",
80
91
  "test:coverage": "vitest --coverage",
81
92
  "test:run": "vitest run",
82
93
  "test:ci": "vitest run --coverage",
94
+ "test:all": "node scripts/test-all-packages.js",
95
+ "test:all:coverage": "node scripts/test-all-packages.js --coverage",
96
+ "test:all:watch": "node scripts/test-all-packages.js --watch",
97
+ "test:packages": "npm run test:router && npm run test:transitions && npm run test:layer && npm run test:schedule && npm run test:pwa && npm run test:speculate",
98
+ "test:router": "cd packages/router && npm test",
99
+ "test:transitions": "cd packages/transitions && npm test",
100
+ "test:layer": "cd packages/layer && npm test",
101
+ "test:schedule": "cd packages/schedule && npm test",
102
+ "test:pwa": "cd packages/pwa && npm test",
103
+ "test:speculate": "cd packages/speculate && npm test",
83
104
  "lint": "eslint src --ext .ts,.tsx",
84
105
  "lint:fix": "eslint src --ext .ts,.tsx --fix",
106
+ "lint:packages": "npm run lint:router && npm run lint:transitions && npm run lint:layer && npm run lint:schedule && npm run lint:pwa && npm run lint:speculate",
107
+ "lint:router": "cd packages/router && npm run lint",
108
+ "lint:transitions": "cd packages/transitions && npm run lint",
109
+ "lint:layer": "cd packages/layer && npm run lint",
110
+ "lint:schedule": "cd packages/schedule && npm run lint",
111
+ "lint:pwa": "cd packages/pwa && npm run lint",
112
+ "lint:speculate": "cd packages/speculate && npm run lint",
85
113
  "typecheck": "tsc --noEmit",
86
114
  "typecheck:adapters": "tsc --noEmit -p tsconfig.adapters.json",
87
115
  "validate": "npm run typecheck && npm run lint",
116
+ "validate:all": "npm run validate && npm run lint:packages",
88
117
  "size-check": "echo 'Bundle size: ~50KB gzipped'",
89
- "benchmark": "vitest run tests/benchmarks/performance-benchmark.ts",
118
+ "benchmark": "node benchmarks/v2-performance.js",
119
+ "benchmark:ci": "node benchmarks/v2-performance.js --ci",
90
120
  "accessibility": "vitest run tests/validation/accessibility-validation.test.ts",
121
+ "quality-gates": "node scripts/test-all-packages.js --coverage && npm run benchmark",
91
122
  "docs:build": "typedoc src/index.ts",
92
- "prepublishOnly": "npm run validate && npm run build:prod",
93
- "release": "npm run validate && npm run build:prod && npm publish"
123
+ "prepublishOnly": "npm run build:all",
124
+ "release": "npm run validate:all && npm run build:all && npm publish",
125
+ "release:patch": "node scripts/release.js patch",
126
+ "release:minor": "node scripts/release.js minor",
127
+ "release:major": "node scripts/release.js major",
128
+ "release:dry": "node scripts/release.js patch --dry-run",
129
+ "publish:dev": "node scripts/publish-dev.js"
94
130
  },
95
131
  "keywords": [
96
132
  "responsive",
@@ -124,7 +160,6 @@
124
160
  "@rollup/plugin-commonjs": "^26.0.1",
125
161
  "@rollup/plugin-node-resolve": "^15.2.3",
126
162
  "@rollup/plugin-terser": "^0.4.4",
127
- "@rollup/plugin-typescript": "^11.1.6",
128
163
  "@types/node": "^22.0.0",
129
164
  "@typescript-eslint/eslint-plugin": "^8.0.0",
130
165
  "@typescript-eslint/parser": "^8.0.0",
@@ -136,8 +171,8 @@
136
171
  "jsdom": "^25.0.0",
137
172
  "rollup": "^4.20.0",
138
173
  "rollup-plugin-analyzer": "^4.0.0",
139
- "rollup-plugin-dts": "^6.1.1",
140
- "typescript": "^5.5.0",
174
+ "rollup-plugin-dts": "^6.2.1",
175
+ "typescript": "^5.9.2",
141
176
  "vitest": "^3.2.4"
142
177
  },
143
178
  "engines": {
@@ -150,6 +185,8 @@
150
185
  "not ie 11"
151
186
  ],
152
187
  "dependencies": {
188
+ "@floating-ui/dom": "^1.7.3",
189
+ "@rollup/plugin-typescript": "^12.1.4",
153
190
  "tslib": "^2.8.1"
154
191
  }
155
192
  }