@vestra-player/sdk 1.6.21 → 1.6.22

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,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.6.22
4
+
5
+ **Who must change: nobody.** Tables follow the menu's Adjustments and Effects and Sidebar items: a data refresh of `BUILTIN_COMMANDS`; no API change, `apiVersion` stays `vestra/1`. A plugin whose tests compare a title or path against the table sees the player's current one.
6
+
7
+ - **`BUILTIN_COMMANDS`**: the player's `host/adjust` is titled **Adjustments and Effects** (was Adjust) and `host/sidebar` **Sidebar** (was Toggle Sidebar), both now top-level menu items in the `windows` group (orders 791 and 800, no default key), named like their bottom-bar buttons (user ruling 2026-11-08). The items they replace, Picture… (`vestra.video/video.picture`, Alt+1), Audio… (`vestra.audio/audio.workbench`, Alt+2), Subtitles… (`vestra.subtitles/tune`, Alt+3), Playback… (`vestra.playback/panel`, Alt+4) and Playlist (`vestra.playlist/playlist.visibility`, F6), are now outside the menu (command palette), with their ids, titles, keys and categories unchanged. `BUILTIN_SUBMENUS` is unchanged. The tables and the top-level tree in [Reference: commands](docs/reference/commands.md) follow.
8
+ - **`TestHost`** refuses a plugin item on or under the player's new Adjustments and Effects and Sidebar items with `conflict`, as the player does (it reads the player's own items from `BUILTIN_COMMANDS`).
9
+ - The guides that named the bottom bar's Adjust and Toggle Sidebar buttons use the new names.
10
+
3
11
  ## 1.6.21
4
12
 
5
13
  **Who must change: nobody.** Step 1 of the SDK refactor, batch G (`doc/specs/sdk-refactor.md` §4 in the player repository): `src/plugin/types.ts` is split by domain; no API, behaviour or wire change, `apiVersion` stays `vestra/1`. A tool that reads `dist/plugin/types.d.ts` by path must now read `dist/plugin/types/*.d.ts` as well, since that file only re-exports them (the player's host-agreement test and the Workshop prompt follow with the player's upgrade).
@@ -137,7 +137,7 @@ export declare const MENU_IDS: readonly ["open", "playback", "subtitles", "video
137
137
  * every icon of the player's V-Line set, `@vestra/icons.slint` (draw one
138
138
  * in your own Slint with `Icon { name: "store"; }`). The player's tests check
139
139
  * that this list is its icon set. `"sliders"` (three sliders, the player's
140
- * Adjust button) is new in player 0.7.6 (SDK 1.6.11); older players refuse
140
+ * Adjustments and Effects button) is new in player 0.7.6 (SDK 1.6.11); older players refuse
141
141
  * it as a button icon with `invalid`.
142
142
  *
143
143
  * @example Check in a test that the button's icon exists
package/dist/commands.js CHANGED
@@ -142,7 +142,7 @@ export const MENU_IDS = [
142
142
  * every icon of the player's V-Line set, `@vestra/icons.slint` (draw one
143
143
  * in your own Slint with `Icon { name: "store"; }`). The player's tests check
144
144
  * that this list is its icon set. `"sliders"` (three sliders, the player's
145
- * Adjust button) is new in player 0.7.6 (SDK 1.6.11); older players refuse
145
+ * Adjustments and Effects button) is new in player 0.7.6 (SDK 1.6.11); older players refuse
146
146
  * it as a button icon with `invalid`.
147
147
  *
148
148
  * @example Check in a test that the button's icon exists
@@ -287,11 +287,8 @@ vestra.capture | capture.copy | Snapshot ▸ Copy Current Frame | Ctrl+C
287
287
  vestra.capture | capture.burst | Snapshot ▸ Burst… | Ctrl+G
288
288
  vestra.capture | capture.clip | Snapshot ▸ Export Clip…
289
289
  vestra.capture | capture.panel | Snapshot ▸ Capture… | Alt+S
290
- vestra.video | video.picture | Picture… | Alt+1
291
- vestra.audio | audio.workbench | Audio… | Alt+2
292
- vestra.subtitles | tune | Subtitles… | Alt+3
293
- vestra.playback | panel | Playback… | Alt+4
294
- vestra.playlist | playlist.visibility | Playlist | F6
290
+ host | adjust | Adjustments and Effects
291
+ host | sidebar | Sidebar
295
292
  vestra.marks | marks.list | Chapter and Bookmark List… | H
296
293
  host | fullscreen | Toggle Fullscreen | Escape
297
294
  vestra.workshop | workshop.open | Vestra Player AI…
@@ -304,8 +301,6 @@ host | previous | (Previous) | PageUp, Mouse:X2
304
301
  host | next | (Next) | PageDown, Mouse:X1
305
302
  host | enter-fullscreen | (Enter Fullscreen)
306
303
  host | exit-fullscreen | (Leave Fullscreen)
307
- host | sidebar | (Toggle Sidebar)
308
- host | adjust | (Adjust)
309
304
  host | volume-up | (Volume +) | ArrowUp, Mouse:WheelUp
310
305
  host | volume-down | (Volume −) | ArrowDown, Mouse:WheelDown
311
306
  host | mute | (Mute) | M
@@ -316,6 +311,11 @@ host | seek-forward | (Forward 5 s) | ArrowRight
316
311
  host | rate-normal | (Normal) | Z
317
312
  host | rate-down | (Slower 0.1) | X
318
313
  host | rate-up | (Faster 0.1) | C
314
+ vestra.video | video.picture | (Picture…) | Alt+1
315
+ vestra.audio | audio.workbench | (Audio…) | Alt+2
316
+ vestra.subtitles | tune | (Subtitles…) | Alt+3
317
+ vestra.playback | panel | (Playback…) | Alt+4
318
+ vestra.playlist | playlist.visibility | (Playlist) | F6
319
319
  vestra.playback | reopen | (Reopen Current/Last File) | Ctrl+Y
320
320
  vestra.playback | copy-name | (File Name)
321
321
  vestra.playback | copy-folder | (Folder Path)
Binary file
@@ -303,9 +303,9 @@ export function commandsHandlers(host, inner) {
303
303
  if (host.commands.has(id))
304
304
  throw commandConflict("owner/localId already registered");
305
305
  // The player's own commands beside the core actions (host/actions.rs
306
- // `host_declarations`: Toggle Fullscreen, Command Palette…, Quit and
307
- // four outside the menu), which take part in conflicts and the total
308
- // like any other.
306
+ // `host_declarations`: Adjustments and Effects, Sidebar, Toggle
307
+ // Fullscreen, Command Palette…, Quit and two outside the menu), which
308
+ // take part in conflicts and the total like any other.
309
309
  const hostOnly = BUILTIN_COMMANDS.filter((row) => row.owner === "host" && !host.coreCommands.has(`host/${row.id}`));
310
310
  // A path may not repeat another command's (the player's own
311
311
  // included) nor be a submenu of one, or one of its submenus.
@@ -808,7 +808,7 @@ export interface Panel extends View, Disposable {
808
808
  * position; otherwise it switches the position on at this panel's tab: a
809
809
  * panel in a background tab comes to the front instead of the sidebar
810
810
  * closing. It is a switch, the same in every mode, like the player's own
811
- * Alt+1…4 and Adjust button: in fullscreen a column switched on is revealed
811
+ * Alt+1…4 and Adjustments and Effects: in fullscreen a column switched on is revealed
812
812
  * by the pointer at the right edge, not popped out (SDK 1.6.13, player
813
813
  * 0.7.6; {@link Panel.show} pops it out), and one switched off while out
814
814
  * slides in at once. A "Show list"
@@ -412,9 +412,9 @@ export interface Panels {
412
412
  * rightmost), 317 wide by default, 280 to half the window, with text tabs
413
413
  * and the key that opens each tab under its title (the key of the command
414
414
  * your other commands name as their {@link CommandOptions.home | home}). It
415
- * has no close or detach button: the bottom bar's Adjust button, your
416
- * panel's own command ({@link Panel.toggle}) and the menus open and close
417
- * it. It starts closed. In a window too narrow to dock it beside a video at
415
+ * has no close or detach button: Adjustments and Effects (`host/adjust`,
416
+ * a menu item and the bottom bar's sliders button), your panel's own
417
+ * command ({@link Panel.toggle}) and the menus open and close it. It starts closed. In a window too narrow to dock it beside a video at
418
418
  * least 480 wide, it floats over the right of the video, 300 wide; in
419
419
  * fullscreen it slides out from the right edge, left of the sidebar. Its
420
420
  * width, open state, current tab and tab order are remembered across
package/llms.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  # Vestra Player SDK
2
2
 
3
- > @vestra-player/sdk 1.6.21: write plugins for Vestra Player in TypeScript (plugin API `vestra/1`). A plugin is a folder with `manifest.json` and an entry module whose default export `activate(plugin)` the player calls. The documentation is a tree of short pages read by path, like `go doc`: the same pages and API as https://vestrasys.github.io/vestra-player-sdk/.
3
+ > @vestra-player/sdk 1.6.22: write plugins for Vestra Player in TypeScript (plugin API `vestra/1`). A plugin is a folder with `manifest.json` and an entry module whose default export `activate(plugin)` the player calls. The documentation is a tree of short pages read by path, like `go doc`: the same pages and API as https://vestrasys.github.io/vestra-player-sdk/.
4
4
 
5
5
  ## Read the documentation
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vestra-player/sdk",
3
- "version": "1.6.21",
3
+ "version": "1.6.22",
4
4
  "description": "Plugin API types, test host and plugin CLI for Vestra Player (apiVersion vestra/1)",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {