@nice2dev/ui-audio 1.1.9 → 1.1.10

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.
@@ -6,5 +6,12 @@ interface Props {
6
6
  audioRef?: React.RefObject<HTMLAudioElement | null>;
7
7
  ytRef?: React.RefObject<YouTubePlayer | null>;
8
8
  }
9
+ /**
10
+ * Preview of the song text: every line on a dark stage, the line of the note being sung lit up
11
+ * while the audio (or the YouTube player in `ytRef`) plays.
12
+ *
13
+ * Plain DOM. It used to be a Phaser scene, which made a game engine of over 100 MB a build
14
+ * requirement for every app that installs this package — for drawing lines of text.
15
+ */
9
16
  export default function KaraokePhaserRenderer({ ultrastarText, audioUrl, audioRef, ytRef }: Props): React.JSX.Element;
10
17
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-audio",
3
- "version": "1.1.9",
4
- "description": "Nice2Dev Audio UI — DAW editor, karaoke engine, player, playlist, DMX, music visualizers for React",
3
+ "version": "1.1.10",
4
+ "description": "Nice2Dev Audio UI — DAW editor, karaoke engine, player, playlist, DMX, music visualizers for React",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
@@ -62,6 +62,11 @@
62
62
  "bugs": {
63
63
  "url": "https://github.com/NiceToDev/NiceToDev.UI/issues"
64
64
  },
65
+ "dependencies": {
66
+ "hls.js": "^1.7.2",
67
+ "pitchy": "^4.1.0",
68
+ "react-youtube": "^10.1.0"
69
+ },
65
70
  "peerDependencies": {
66
71
  "@nice2dev/icons": "^1.0.29",
67
72
  "@nice2dev/ui": "^1.0.28",
@@ -69,67 +74,18 @@
69
74
  "react": ">=17.0.0",
70
75
  "react-dom": ">=17.0.0"
71
76
  },
72
- "peerDependenciesMeta": {
73
- "recharts": {
74
- "optional": true
75
- },
76
- "react-window": {
77
- "optional": true
78
- },
79
- "react-youtube": {
80
- "optional": true
81
- },
82
- "hls.js": {
83
- "optional": true
84
- },
85
- "pitchy": {
86
- "optional": true
87
- },
88
- "phaser": {
89
- "optional": true
90
- },
91
- "framer-motion": {
92
- "optional": true
93
- },
94
- "@fortawesome/react-fontawesome": {
95
- "optional": true
96
- },
97
- "@fortawesome/free-solid-svg-icons": {
98
- "optional": true
99
- },
100
- "@fortawesome/free-brands-svg-icons": {
101
- "optional": true
102
- },
103
- "music-metadata-browser": {
104
- "optional": true
105
- },
106
- "fflate": {
107
- "optional": true
108
- },
109
- "@ffmpeg/ffmpeg": {
110
- "optional": true
111
- },
112
- "@monaco-editor/react": {
113
- "optional": true
114
- }
115
- },
116
77
  "devDependencies": {
117
- "@nice2dev/ui": "^1.1.9",
118
- "@nice2dev/ui-core": "^1.1.9",
78
+ "@nice2dev/ui": "^1.1.10",
79
+ "@nice2dev/ui-core": "^1.1.10",
119
80
  "@testing-library/jest-dom": "^7.0.1",
120
81
  "@testing-library/react": "^16.3.3",
121
82
  "@types/node": "^22.10.0",
122
83
  "@types/react": "^19.2.18",
123
84
  "@types/react-dom": "^19.2.7",
124
85
  "@vitejs/plugin-react": "^4.7.0",
125
- "hls.js": "^1.7.2",
126
86
  "jsdom": "^29.0.0",
127
- "pitchy": "^4.1.0",
128
87
  "react": "^19.2.8",
129
88
  "react-dom": "^19.2.8",
130
- "react-window": "^1.8.11",
131
- "react-youtube": "^10.1.0",
132
- "recharts": "^3.10.1",
133
89
  "typescript": "^5.9.3",
134
90
  "vite": "^6.4.1",
135
91
  "vite-plugin-dts": "^4.5.4",