@four-leaf-studios/rl-overlay 1.0.5 → 1.1.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.
Files changed (53) hide show
  1. package/.github/copilot-instructions.md +70 -0
  2. package/dist/index.cjs.js +298 -10599
  3. package/dist/index.cjs.js.map +1 -1
  4. package/dist/index.esm.js +328 -10612
  5. package/dist/index.esm.js.map +1 -1
  6. package/dist/types/Overlay.d.ts +5 -6
  7. package/dist/types/OverlaySlot.d.ts +9 -0
  8. package/dist/types/index.d.ts +2 -0
  9. package/dist/types/registry.d.ts +2 -0
  10. package/package.json +12 -5
  11. package/src/Overlay.tsx +47 -41
  12. package/src/OverlaySlot.tsx +35 -0
  13. package/src/Player.tsx +1 -0
  14. package/src/PlayerBoost.tsx +4 -1
  15. package/src/Scoreboard.tsx +1 -0
  16. package/src/ScoreboardGameBox.tsx +2 -4
  17. package/src/ScoreboardSeriesBox.tsx +2 -3
  18. package/src/ScoreboardTeam.tsx +1 -0
  19. package/src/StatItem.tsx +4 -1
  20. package/src/TargetBoost.tsx +1 -0
  21. package/src/TargetPlayer.tsx +1 -0
  22. package/src/TargetPlayerLocation.tsx +1 -0
  23. package/src/TargetPlayerStats.tsx +1 -1
  24. package/src/Team.tsx +1 -0
  25. package/src/Timer.tsx +7 -4
  26. package/src/css/Florida_Tech.css +696 -0
  27. package/src/css/Horizon_Hues.css +618 -0
  28. package/src/css/Neo_Glass.css +674 -0
  29. package/src/css/Obsidian_Glide.css +646 -0
  30. package/src/css/RLCS_2024.css +566 -0
  31. package/src/css/RLCS_2025.css +524 -0
  32. package/src/css/Shaded_blocks.css +594 -0
  33. package/src/index.ts +2 -0
  34. package/src/registry.ts +19 -0
  35. package/src/types.d.ts +20 -0
  36. package/test-overlay/package-lock.json +2697 -0
  37. package/test-overlay/package.json +3 -0
  38. package/test-overlay/public/mock-css.css +259 -386
  39. package/test-overlay/src/App.jsx +78 -28
  40. package/tests/BroadcastContext.test.tsx +41 -0
  41. package/tests/Overlay.test.tsx +106 -0
  42. package/tests/OverlaySlot.test.tsx +79 -0
  43. package/tests/PlayerBoost.test.tsx +47 -0
  44. package/tests/Replay.test.tsx +29 -0
  45. package/tests/ScoreboardGameBox.test.tsx +35 -0
  46. package/tests/ScoreboardSeriesBox.test.tsx +48 -0
  47. package/tests/StatItem.test.tsx +33 -0
  48. package/tests/__mocks__/@four-leaf-studios/rl-socket-hook.ts +10 -0
  49. package/tests/fixtures.ts +96 -0
  50. package/tests/registry.test.ts +27 -0
  51. package/tests/setup.ts +1 -0
  52. package/tsconfig.json +16 -20
  53. package/vitest.config.ts +9 -0
package/tsconfig.json CHANGED
@@ -1,21 +1,17 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES5", // still emit ES5-compatible code
4
- "lib": [
5
- "DOM", // if you’re targeting browsers
6
- "ES2015", // includes Array.from, Map, Set, etc
7
- "ES2016",
8
- "ES2017"
9
- ],
10
- "module": "ESNext",
11
- "jsx": "react",
12
- "declaration": true,
13
- "declarationDir": "dist/types",
14
- "outDir": "dist",
15
- "strict": true,
16
- "esModuleInterop": true,
17
- "skipLibCheck": true,
18
- "moduleResolution": "node"
19
- },
20
- "include": ["src", "test-overlay/src/mockBroadcast.js"]
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2017",
4
+ "lib": ["DOM", "ES2015", "ES2016", "ES2017"],
5
+ "module": "ESNext",
6
+ "jsx": "react",
7
+ "declaration": true,
8
+ "declarationDir": "dist/types",
9
+ "rootDir": "./src",
10
+ "outDir": "dist",
11
+ "strict": true,
12
+ "esModuleInterop": true,
13
+ "skipLibCheck": true,
14
+ "moduleResolution": "bundler"
15
+ },
16
+ "include": ["src"]
21
17
  }
@@ -0,0 +1,9 @@
1
+ import { defineConfig } from "vitest/config";
2
+
3
+ export default defineConfig({
4
+ test: {
5
+ environment: "jsdom",
6
+ globals: true,
7
+ setupFiles: ["./tests/setup.ts"],
8
+ },
9
+ });