@involvex/youtube-music-cli 0.0.16 → 0.0.18
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [0.0.18](https://github.com/involvex/youtube-music-cli/compare/v0.0.17...v0.0.18) (2026-02-18)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- start playback on shuffle, reset, and next actions ([d57452b](https://github.com/involvex/youtube-music-cli/commit/d57452bc6cf49ba7cdc62910ebadf7a2dea66007))
|
|
6
|
+
|
|
7
|
+
## [0.0.17](https://github.com/involvex/youtube-music-cli/compare/v0.0.16...v0.0.17) (2026-02-18)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **ui:** add playback mode and repeat indicators ([bc499a2](https://github.com/involvex/youtube-music-cli/commit/bc499a2083063d3bda3d4b1b1f1a85d620be9fd1))
|
|
12
|
+
|
|
1
13
|
## [0.0.16](https://github.com/involvex/youtube-music-cli/compare/v0.0.15...v0.0.16) (2026-02-18)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
|
@@ -7,7 +7,7 @@ import { useKeyBinding } from "../../hooks/useKeyboard.js";
|
|
|
7
7
|
import { KEYBINDINGS } from "../../utils/constants.js";
|
|
8
8
|
export default function ShortcutsBar() {
|
|
9
9
|
const { theme } = useTheme();
|
|
10
|
-
const { state: playerState, pause, resume, next, previous, volumeUp, volumeDown, volumeFineUp, volumeFineDown, } = usePlayer();
|
|
10
|
+
const { state: playerState, pause, resume, next, previous, volumeUp, volumeDown, volumeFineUp, volumeFineDown, toggleShuffle, toggleRepeat, } = usePlayer();
|
|
11
11
|
// Register key bindings globally
|
|
12
12
|
const handlePlayPause = () => {
|
|
13
13
|
if (playerState.isPlaying) {
|
|
@@ -24,6 +24,10 @@ export default function ShortcutsBar() {
|
|
|
24
24
|
useKeyBinding(KEYBINDINGS.VOLUME_DOWN, volumeDown);
|
|
25
25
|
useKeyBinding(KEYBINDINGS.VOLUME_FINE_UP, volumeFineUp);
|
|
26
26
|
useKeyBinding(KEYBINDINGS.VOLUME_FINE_DOWN, volumeFineDown);
|
|
27
|
+
useKeyBinding(KEYBINDINGS.SHUFFLE, toggleShuffle);
|
|
28
|
+
useKeyBinding(KEYBINDINGS.REPEAT, toggleRepeat);
|
|
27
29
|
// Note: SETTINGS keybinding handled by MainLayout to avoid double-dispatch
|
|
28
|
-
return (_jsxs(Box, { borderStyle: "single", borderColor: theme.colors.dim, paddingX: 1, justifyContent: "space-between", children: [_jsxs(Text, { color: theme.colors.dim, children: [
|
|
30
|
+
return (_jsxs(Box, { borderStyle: "single", borderColor: theme.colors.dim, paddingX: 1, justifyContent: "space-between", children: [_jsxs(Text, { color: theme.colors.dim, children: [_jsx(Text, { color: theme.colors.text, children: "\u2420" }), playerState.isPlaying ? '⏸️' : '▶️', " |", ' ', _jsx(Text, { color: theme.colors.text, children: "\u2190" }), "\u23EA\uFE0F |", ' ', _jsx(Text, { color: theme.colors.text, children: "\u2192" }), "\u23ED\uFE0F |", ' ', _jsx(Text, { color: theme.colors.text, children: "\u21E7S" }), "\uD83D\uDD00 |", ' ', _jsx(Text, { color: theme.colors.text, children: "R" }), "\uD83D\uDD04 |", ' ', _jsx(Text, { color: theme.colors.text, children: "\u21E7P" }), "\uD83D\uDCDA |", ' ', _jsx(Text, { color: theme.colors.text, children: "\u21E7D" }), "\u2B07 |", ' ', _jsx(Text, { color: theme.colors.text, children: "m" }), "\uD83C\uDFB6 |", ' ', _jsx(Text, { color: theme.colors.text, children: "/" }), "\uD83D\uDD0E |", ' ', _jsx(Text, { color: theme.colors.text, children: "?" }), "\u2753 |", ' ', _jsx(Text, { color: theme.colors.text, children: "Q" }), "\u23FB"] }), _jsxs(Text, { color: theme.colors.text, children: [_jsx(Text, { color: playerState.shuffle ? theme.colors.primary : theme.colors.dim, children: "\uD83D\uDD00" }), ' ', _jsx(Text, { color: playerState.repeat === 'off'
|
|
31
|
+
? theme.colors.dim
|
|
32
|
+
: theme.colors.secondary, children: playerState.repeat === 'one' ? '🔂' : '🔄' }), ' ', _jsx(Text, { color: theme.colors.dim, children: "\uD83D\uDD0A [=/" }), "-", _jsx(Text, { color: theme.colors.dim, children: "]" }), ' ', _jsxs(Text, { color: theme.colors.primary, children: [playerState.volume, "%"] })] })] }));
|
|
29
33
|
}
|
|
@@ -58,6 +58,7 @@ export function playerReducer(state, action) {
|
|
|
58
58
|
...state,
|
|
59
59
|
queuePosition: randomIndex,
|
|
60
60
|
currentTrack: state.queue[randomIndex] ?? null,
|
|
61
|
+
isPlaying: true,
|
|
61
62
|
progress: 0,
|
|
62
63
|
};
|
|
63
64
|
}
|
|
@@ -69,6 +70,7 @@ export function playerReducer(state, action) {
|
|
|
69
70
|
...state,
|
|
70
71
|
queuePosition: 0,
|
|
71
72
|
currentTrack: state.queue[0] ?? null,
|
|
73
|
+
isPlaying: true,
|
|
72
74
|
progress: 0,
|
|
73
75
|
};
|
|
74
76
|
}
|
|
@@ -78,6 +80,7 @@ export function playerReducer(state, action) {
|
|
|
78
80
|
...state,
|
|
79
81
|
queuePosition: nextPosition,
|
|
80
82
|
currentTrack: state.queue[nextPosition] ?? null,
|
|
83
|
+
isPlaying: true,
|
|
81
84
|
progress: 0,
|
|
82
85
|
};
|
|
83
86
|
}
|
|
Binary file
|