@vestra-player/sdk 1.11.0-rc.5 → 1.11.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.
- package/CHANGELOG.md +5 -1
- package/dist/commands.d.ts +1 -1
- package/dist/commands.js +1 -1
- package/dist/docs-tree.json.gz +0 -0
- package/dist/plugin/testing/index.d.ts +3 -1
- package/dist/plugin/testing/index.js +3 -1
- package/llms.txt +1 -1
- package/package.json +1 -1
- package/slint/vestra/icons.slint +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -28,7 +28,11 @@
|
|
|
28
28
|
- **New guide, [Learn what happens in the player without staying up](docs/guides/events-and-triggers.md)**: the four ways to learn the state (a read, an event, a trigger, a stream) and when each fits, with four examples (on top while playing fullscreen; a named sleep timer; acting at position ranges; a window that shows the time left), the patterns for state that has no event, and tests with `keepsRunning`, `park`, `advance` and `upgrade`.
|
|
29
29
|
- **[Command state](docs/guides/command-state.md) covers the whole `when` language**: a function field is evaluated in the plugin with the plugin's own copy of the state, a condition by the player, also in standby. How a plugin works, Control playback, Troubleshooting (an old playback state in a menu, a plugin that never parks, a trigger declared after an `await`), the tutorial, Filters, Sliders, Subtitles, Design rules, the README and the `@example`s of `Commands.add`, `Command.set`, `Bindable`, `Player.read`, `Player.previous`, `Player.audioDevices`, `View.bind`, `Panels.mount` and `OsdPanel` follow the same rules: commands follow the player with `when`, handlers read the state with `refresh()`, a stream is open only while something shows the state, and a filter is made when it is first needed (a filter follows the source from the moment it is made, which keeps the plugin running).
|
|
30
30
|
- **Examples**: `adjust-panel` follows the speed with a stream only while its tab is on screen (`layout.changed`) and enables Normal Speed with `when.can("rate")`; `bookmark` streams only while its window is open and keeps its mark in session storage; `menus` checks the speeds with `when.rate` and enables them with `when.can("rate")`; `three-ways` follows the speed only while the bar shows and learns a new source from `source.opening`/`ready`/`ended` in every style; `blur` makes its filter on first use; `panel-menu` keeps its list in session storage. Every example's test checks with `keepsRunning` that nothing keeps it running while idle. `minPlayerVersion`: `adjust-panel` 0.11.0, `menus` 0.10.0. The golden traces of `adjust-panel`, `blur`, `bookmark`, `menus` and `panel-menu` are recorded again (fewer subscriptions and passes; the session storage reads), and `docs-tree.test.ts` looks for style B's new listener line in the tutorial.
|
|
31
|
-
- `TestHost.listening`, `listeningWhy` and `keepsRunning` say what they list now: listeners and streams,
|
|
31
|
+
- `TestHost.listening`, `listeningWhy` and `keepsRunning` say what they list now: the listeners and streams that keep a plugin running. A binding's or a command field's read is never one; while a listener or stream holds the same event, the read is listed beside it (with "— use plugin.when" where a condition exists), as the player's log shows it.
|
|
32
|
+
|
|
33
|
+
**Product data:**
|
|
34
|
+
|
|
35
|
+
- **`@vestra/icons.slint`** follows the player (main 6182f3d1, #459): the palette button's `search-ai` icon is a magnifier with the AI icon's sparkle, no longer a speech bubble.
|
|
32
36
|
|
|
33
37
|
## 1.10.1
|
|
34
38
|
|
package/dist/commands.d.ts
CHANGED
|
@@ -138,7 +138,7 @@ export declare const MENU_IDS: readonly ["open", "playback", "subtitles", "video
|
|
|
138
138
|
* icon of the player's V-Line set, `@vestra/icons.slint` (draw one in your own
|
|
139
139
|
* Slint with `Icon { name: "store"; }`). The player's tests check that this
|
|
140
140
|
* list is its icon set. `"sliders"` (three sliders, the player's Adjustments
|
|
141
|
-
* and Effects button); `"search-ai"` (a
|
|
141
|
+
* and Effects button); `"search-ai"` (a magnifier with the AI icon's
|
|
142
142
|
* sparkle, the palette's button while a plugin holds its lead row).
|
|
143
143
|
*
|
|
144
144
|
* @example Check in a test that the button's icon exists
|
package/dist/commands.js
CHANGED
|
@@ -143,7 +143,7 @@ export const MENU_IDS = [
|
|
|
143
143
|
* icon of the player's V-Line set, `@vestra/icons.slint` (draw one in your own
|
|
144
144
|
* Slint with `Icon { name: "store"; }`). The player's tests check that this
|
|
145
145
|
* list is its icon set. `"sliders"` (three sliders, the player's Adjustments
|
|
146
|
-
* and Effects button); `"search-ai"` (a
|
|
146
|
+
* and Effects button); `"search-ai"` (a magnifier with the AI icon's
|
|
147
147
|
* sparkle, the palette's button while a plugin holds its lead row).
|
|
148
148
|
*
|
|
149
149
|
* @example Check in a test that the button's icon exists
|
package/dist/docs-tree.json.gz
CHANGED
|
Binary file
|
|
@@ -601,7 +601,9 @@ export declare class TestHost implements Transport {
|
|
|
601
601
|
* Why the plugin listens to each event of {@link TestHost.listening}:
|
|
602
602
|
* every listener and stream, as the player's log says them (`a listener
|
|
603
603
|
* added at main.ts:12`, `a stream opened at main.ts:20`), in the order
|
|
604
|
-
* they came.
|
|
604
|
+
* they came. A binding's or command field's read of the event's state is
|
|
605
|
+
* listed beside them (with "— use plugin.when" where a condition exists);
|
|
606
|
+
* it is never a reason on its own.
|
|
605
607
|
*
|
|
606
608
|
* @since 1.5.40
|
|
607
609
|
*/
|
|
@@ -279,7 +279,9 @@ export class TestHost {
|
|
|
279
279
|
* Why the plugin listens to each event of {@link TestHost.listening}:
|
|
280
280
|
* every listener and stream, as the player's log says them (`a listener
|
|
281
281
|
* added at main.ts:12`, `a stream opened at main.ts:20`), in the order
|
|
282
|
-
* they came.
|
|
282
|
+
* they came. A binding's or command field's read of the event's state is
|
|
283
|
+
* listed beside them (with "— use plugin.when" where a condition exists);
|
|
284
|
+
* it is never a reason on its own.
|
|
283
285
|
*
|
|
284
286
|
* @since 1.5.40
|
|
285
287
|
*/
|
package/llms.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Vestra Player SDK
|
|
2
2
|
|
|
3
|
-
> @vestra-player/sdk 1.11.0
|
|
3
|
+
> @vestra-player/sdk 1.11.0: 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
package/slint/vestra/icons.slint
CHANGED
|
@@ -55,10 +55,10 @@ export global Icons {
|
|
|
55
55
|
// Three sliders with their knobs (the adjust column, `host/adjust`),
|
|
56
56
|
// the default 14 × 12 box.
|
|
57
57
|
if name == "sliders" { return "M 1.5 2.5 H 7.6 M 10.4 2.5 H 12.5 M 10.4 2.5 A 1.4 1.4 0 1 1 7.6 2.5 A 1.4 1.4 0 1 1 10.4 2.5 Z M 1.5 6 H 3.1 M 5.9 6 H 12.5 M 5.9 6 A 1.4 1.4 0 1 1 3.1 6 A 1.4 1.4 0 1 1 5.9 6 Z M 1.5 9.5 H 6.6 M 9.4 9.5 H 12.5 M 9.4 9.5 A 1.4 1.4 0 1 1 6.6 9.5 A 1.4 1.4 0 1 1 9.4 9.5 Z"; }
|
|
58
|
-
// A
|
|
59
|
-
//
|
|
60
|
-
//
|
|
61
|
-
if name == "search-ai" { return "M
|
|
58
|
+
// A magnifier with the AI icon's four-point sparkle at its top right
|
|
59
|
+
// (the palette's strip cell while a plugin holds its first row,
|
|
60
|
+
// `palette.lead`), the default 14 × 12 box.
|
|
61
|
+
if name == "search-ai" { return "M 8.6 6.4 A 3.5 3.5 0 1 1 1.6 6.4 A 3.5 3.5 0 1 1 8.6 6.4 Z M 7.6 8.9 L 10.2 11.1 M 11.05 0.75 Q 11.336 2.664 13.25 2.95 Q 11.336 3.236 11.05 5.15 Q 10.764 3.236 8.85 2.95 Q 10.764 2.664 11.05 0.75 Z"; }
|
|
62
62
|
return "";
|
|
63
63
|
}
|
|
64
64
|
// Line width.
|