@vestra-player/sdk 1.5.31 → 1.5.33

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.
@@ -50,6 +50,8 @@ import type { Json } from "../wire.ts";
50
50
  * ```
51
51
  *
52
52
  * @since 1.5.10
53
+ *
54
+ * @category Testing
53
55
  */
54
56
  export declare const UI_VALUE_LIMITS: {
55
57
  /** Nesting depth; the value itself is depth 0 (8). */
@@ -74,6 +76,9 @@ export declare const UI_VALUE_LIMITS: {
74
76
  * The player's runtime image limits (`src/host/src/ui/ui_image.rs`): a file's
75
77
  * bytes and sides, the decoded pixels each plugin caches, and (SDK 1.5.19,
76
78
  * player 0.5.1) the decoded pixels the nested images of one view may show.
79
+ *
80
+ * @since 1.5.19
81
+ * @category Testing
77
82
  */
78
83
  export declare const IMAGE_LIMITS: Readonly<{
79
84
  /** The largest image file the player reads, in bytes. */
@@ -48,6 +48,8 @@
48
48
  * ```
49
49
  *
50
50
  * @since 1.5.10
51
+ *
52
+ * @category Testing
51
53
  */
52
54
  export const UI_VALUE_LIMITS = {
53
55
  /** Nesting depth; the value itself is depth 0 (8). */
@@ -82,6 +84,9 @@ function documentText(value) {
82
84
  * The player's runtime image limits (`src/host/src/ui/ui_image.rs`): a file's
83
85
  * bytes and sides, the decoded pixels each plugin caches, and (SDK 1.5.19,
84
86
  * player 0.5.1) the decoded pixels the nested images of one view may show.
87
+ *
88
+ * @since 1.5.19
89
+ * @category Testing
85
90
  */
86
91
  export const IMAGE_LIMITS = Object.freeze({
87
92
  /** The largest image file the player reads, in bytes. */
@@ -29,6 +29,9 @@ import type { Transport } from "./wire.ts";
29
29
  * ];
30
30
  * plugin.video.filter("picture").set(chain);
31
31
  * ```
32
+ *
33
+ * @since 1.0.0
34
+ * @category Processing
32
35
  */
33
36
  export type VideoNode =
34
37
  /** FFmpeg `eq`; every field is live. */
@@ -181,6 +184,9 @@ export type VideoNode =
181
184
  * ],
182
185
  * });
183
186
  * ```
187
+ *
188
+ * @since 1.0.0
189
+ * @category Processing
184
190
  */
185
191
  export type AudioNode =
186
192
  /** FFmpeg `volume`. */
@@ -46,6 +46,9 @@ export type ResolvedResource = {
46
46
  * },
47
47
  * });
48
48
  * ```
49
+ *
50
+ * @since 1.0.0
51
+ * @category Sources
49
52
  */
50
53
  export type ResolvedMedia = {
51
54
  /** Always `"media"`. */
@@ -43,6 +43,9 @@ export type SubtitleStamp = {
43
43
  * };
44
44
  * await plugin.subtitles.setStyle(style);
45
45
  * ```
46
+ *
47
+ * @since 1.0.0
48
+ * @category Subtitles
46
49
  */
47
50
  export type SubtitleStyle = {
48
51
  /** A font id from {@link SubtitlesState.fonts}. */
package/dist/wire.d.ts CHANGED
@@ -6,6 +6,9 @@ export declare const API_VERSION: "vestra/1";
6
6
  /**
7
7
  * A JSON value: what crosses the wire to the player. Slint property values,
8
8
  * callback arguments and protocol parameters are all `Json`.
9
+ *
10
+ * @since 1.0.0
11
+ * @category Plugin
9
12
  */
10
13
  export type Json = null | boolean | number | string | Json[] | {
11
14
  [key: string]: Json;
@@ -92,11 +95,21 @@ export interface UiCallback {
92
95
  * host.reset("clipboard.writeText"); // writes succeed again
93
96
  * await stop();
94
97
  * ```
98
+ *
99
+ * @remarks
100
+ * A definite refusal, as opposed to a lost reply: the SDK does not retry
101
+ * it, and the plugin sees an `Error` with `code`.
102
+ *
103
+ * @capability None.
104
+ * @since 1.0.0
105
+ * @category Testing
95
106
  */
96
107
  export declare class HostError extends Error {
97
108
  /** The stable error code, e.g. `"invalid"`, `"stale"`, `"unavailable"`. */
98
109
  code: string;
99
110
  /**
111
+ * A refusal with this code, as the player would send it.
112
+ *
100
113
  * @param code - The stable error code the caller will see as `error.code`.
101
114
  * @param message - Human-readable detail (not for branching on).
102
115
  */
package/dist/wire.js CHANGED
@@ -52,11 +52,21 @@ export const API_VERSION = "vestra/1";
52
52
  * host.reset("clipboard.writeText"); // writes succeed again
53
53
  * await stop();
54
54
  * ```
55
+ *
56
+ * @remarks
57
+ * A definite refusal, as opposed to a lost reply: the SDK does not retry
58
+ * it, and the plugin sees an `Error` with `code`.
59
+ *
60
+ * @capability None.
61
+ * @since 1.0.0
62
+ * @category Testing
55
63
  */
56
64
  export class HostError extends Error {
57
65
  /** The stable error code, e.g. `"invalid"`, `"stale"`, `"unavailable"`. */
58
66
  code;
59
67
  /**
68
+ * A refusal with this code, as the player would send it.
69
+ *
60
70
  * @param code - The stable error code the caller will see as `error.code`.
61
71
  * @param message - Human-readable detail (not for branching on).
62
72
  */