@vestra-player/sdk 1.6.17 → 1.6.19
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 +24 -0
- package/dist/docs-tree.json.gz +0 -0
- package/dist/plugin/appearance.js +1 -1
- package/dist/plugin/bindings.js +1 -1
- package/dist/plugin/commands.js +3 -2
- package/dist/plugin/connection.d.ts +119 -0
- package/dist/plugin/connection.js +402 -0
- package/dist/plugin/drops.d.ts +3 -3
- package/dist/plugin/drops.js +1 -1
- package/dist/plugin/errors.d.ts +9 -0
- package/dist/plugin/errors.js +35 -0
- package/dist/plugin/filters.js +1 -1
- package/dist/plugin/index.d.ts +1 -1
- package/dist/plugin/index.js +3 -1
- package/dist/plugin/language.js +1 -1
- package/dist/plugin/latest.d.ts +12 -0
- package/dist/plugin/latest.js +52 -0
- package/dist/plugin/local.js +1 -2
- package/dist/plugin/markdown.d.ts +2 -2
- package/dist/plugin/markdown.js +1 -1
- package/dist/plugin/media.js +1 -1
- package/dist/plugin/osd.js +2 -2
- package/dist/plugin/packages.js +1 -1
- package/dist/plugin/passes.d.ts +111 -0
- package/dist/plugin/passes.js +341 -0
- package/dist/plugin/player.d.ts +2 -3
- package/dist/plugin/player.js +2 -7
- package/dist/plugin/resolvers.js +1 -1
- package/dist/plugin/runtime.d.ts +26 -185
- package/dist/plugin/runtime.js +35 -755
- package/dist/plugin/scope.d.ts +2 -1
- package/dist/plugin/scope.js +5 -2
- package/dist/plugin/services/dialogs.d.ts +3 -0
- package/dist/plugin/services/dialogs.js +62 -0
- package/dist/plugin/services.js +1 -1
- package/dist/plugin/settings.js +2 -2
- package/dist/plugin/shaders.js +2 -1
- package/dist/plugin/stream.js +1 -2
- package/dist/plugin/subtitles.js +2 -2
- package/dist/plugin/testing/commands.d.ts +65 -0
- package/dist/plugin/testing/commands.js +412 -0
- package/dist/plugin/testing/core-actions.d.ts +39 -0
- package/dist/plugin/testing/core-actions.js +371 -0
- package/dist/plugin/testing/declarations.d.ts +37 -0
- package/dist/plugin/testing/declarations.js +80 -0
- package/dist/plugin/testing/i18n.d.ts +28 -0
- package/dist/plugin/testing/i18n.js +107 -0
- package/dist/plugin/testing/index.d.ts +3140 -0
- package/dist/plugin/testing/index.js +2796 -0
- package/dist/plugin/testing/internals.d.ts +76 -0
- package/dist/plugin/testing/internals.js +60 -0
- package/dist/plugin/testing/jobs.d.ts +9 -0
- package/dist/plugin/testing/jobs.js +304 -0
- package/dist/plugin/testing/layout.d.ts +85 -0
- package/dist/plugin/testing/layout.js +622 -0
- package/dist/plugin/testing/media.d.ts +55 -0
- package/dist/plugin/testing/media.js +615 -0
- package/dist/plugin/testing/osd.d.ts +4 -0
- package/dist/plugin/testing/osd.js +57 -0
- package/dist/plugin/testing/processing.d.ts +56 -0
- package/dist/plugin/testing/processing.js +491 -0
- package/dist/plugin/testing/services.d.ts +50 -0
- package/dist/plugin/testing/services.js +466 -0
- package/dist/plugin/testing/transport.d.ts +29 -0
- package/dist/plugin/testing/transport.js +140 -0
- package/dist/plugin/testing.d.ts +1 -3140
- package/dist/plugin/testing.js +1 -6203
- package/dist/plugin/timeline.js +2 -1
- package/dist/plugin/view/base.d.ts +29 -0
- package/dist/plugin/view/base.js +88 -0
- package/dist/plugin/view/binder.d.ts +22 -0
- package/dist/plugin/view/binder.js +57 -0
- package/dist/plugin/view/image.d.ts +21 -0
- package/dist/plugin/view/image.js +60 -0
- package/dist/plugin/view/layout.d.ts +47 -0
- package/dist/plugin/view/layout.js +171 -0
- package/dist/plugin/view/panel.d.ts +3 -0
- package/dist/plugin/view/panel.js +178 -0
- package/dist/plugin/view/window.d.ts +3 -0
- package/dist/plugin/view/window.js +99 -0
- package/dist/plugin/view/writer.d.ts +58 -0
- package/dist/plugin/view/writer.js +634 -0
- package/dist/plugin/view.js +2 -1
- package/dist/plugin/window.js +1 -1
- package/llms.txt +1 -1
- package/package.json +6 -4
- package/dist/plugin/ui.d.ts +0 -74
- package/dist/plugin/ui.js +0 -1234
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vestra-player/sdk",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.19",
|
|
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": {
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"default": "./dist/index.js"
|
|
18
18
|
},
|
|
19
19
|
"./testing": {
|
|
20
|
-
"types": "./dist/plugin/testing.d.ts",
|
|
21
|
-
"default": "./dist/plugin/testing.js"
|
|
20
|
+
"types": "./dist/plugin/testing/index.d.ts",
|
|
21
|
+
"default": "./dist/plugin/testing/index.js"
|
|
22
22
|
},
|
|
23
23
|
"./runtime": {
|
|
24
24
|
"types": "./dist/player-runtime.d.ts",
|
|
@@ -49,9 +49,11 @@
|
|
|
49
49
|
"llms.txt"
|
|
50
50
|
],
|
|
51
51
|
"scripts": {
|
|
52
|
+
"api-surface": "node scripts/api-surface.mjs",
|
|
53
|
+
"bench": "node scripts/bench.mjs",
|
|
52
54
|
"build": "node scripts/build.mjs",
|
|
53
55
|
"capabilities:sync": "node scripts/capabilities-sync.mjs",
|
|
54
|
-
"check": "tsc -p tsconfig.check.json",
|
|
56
|
+
"check": "tsc -p tsconfig.check.json && node scripts/check-layers.mjs",
|
|
55
57
|
"doc-lint": "node scripts/doc-lint.mjs",
|
|
56
58
|
"docs": "typedoc",
|
|
57
59
|
"docs:check": "node scripts/check-docs.mjs",
|
package/dist/plugin/ui.d.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import type { Json, PropertyWrite } from "../wire.ts";
|
|
2
|
-
import type { ScopeImpl } from "./scope.ts";
|
|
3
|
-
import type { Dialogs, Disposable, ImageOptions, ImageRef, Panels, PropValue, Props, Ui, View, Windows } from "./types.ts";
|
|
4
|
-
/** Slint names are kebab-case; plugin code may use camelCase. */
|
|
5
|
-
export declare const kebab: (name: string) => string;
|
|
6
|
-
/**
|
|
7
|
-
* `plugin.ui.image`. The wire form (`{ $vestraImage: path, ref }`) is an
|
|
8
|
-
* internal detail; `ref` makes every call a new value, so a file rewritten
|
|
9
|
-
* under the same path is sent (and decoded) again. The player checks the
|
|
10
|
-
* path on every use, so a hand-made wire value gains nothing.
|
|
11
|
-
*/
|
|
12
|
-
export declare class ImageHandle implements ImageRef {
|
|
13
|
-
#private;
|
|
14
|
-
readonly path: string;
|
|
15
|
-
readonly __vestraImage: true;
|
|
16
|
-
constructor(scope: ScopeImpl, path: string, maxSide?: number);
|
|
17
|
-
/** Released with its scope: writing it is `invalid`. */
|
|
18
|
-
get released(): boolean;
|
|
19
|
-
toJSON(): Json;
|
|
20
|
-
}
|
|
21
|
-
/** `ImageOptions.maxSide`, checked: an integer 1–4096 or absent. */
|
|
22
|
-
export declare function imageSide(options: ImageOptions | undefined): number | undefined;
|
|
23
|
-
export declare const ui: (scope: ScopeImpl) => Ui;
|
|
24
|
-
/** Property and callback plumbing shared by windows, panels and settings pages. */
|
|
25
|
-
export declare abstract class ViewBase implements View {
|
|
26
|
-
#private;
|
|
27
|
-
protected readonly scope: ScopeImpl;
|
|
28
|
-
protected readonly handlers: Map<string, (...args: Json[]) => unknown>;
|
|
29
|
-
protected closed: boolean;
|
|
30
|
-
constructor(scope: ScopeImpl);
|
|
31
|
-
protected abstract live(): boolean;
|
|
32
|
-
protected abstract write(property: string, write: PropertyWrite): Promise<void>;
|
|
33
|
-
/**
|
|
34
|
-
* Initial properties in wire form. A released image is left out (the
|
|
35
|
-
* property keeps its default) and reported, like a failed write. With a
|
|
36
|
-
* player that takes row patches, the arrays of one request carry at most
|
|
37
|
-
* {@link CHUNK_BYTES} of rows together (SDK 1.5.46): an array over that
|
|
38
|
-
* goes with its first rows, and the first flush sends the rest as patches.
|
|
39
|
-
* An array over the value limits is refused here, as the player would
|
|
40
|
-
* refuse it whole: left out and reported (a panel, a settings page), or,
|
|
41
|
-
* with `refuse` (a window's `show`), thrown.
|
|
42
|
-
*/
|
|
43
|
-
protected wired(values: Record<string, PropValue>, refuse?: boolean): Record<string, Json>;
|
|
44
|
-
on<A extends Json[]>(callback: string, handler: (...args: A) => unknown): Disposable;
|
|
45
|
-
set(props: Props): void;
|
|
46
|
-
bind(props: () => Props): Disposable;
|
|
47
|
-
/**
|
|
48
|
-
* Current desired properties (bound values win over earlier `set`). A
|
|
49
|
-
* precise pass (`Runtime.part`) skips a bind function that read none of
|
|
50
|
-
* the changed state: its last values stay.
|
|
51
|
-
*/
|
|
52
|
-
protected snapshot(): Record<string, PropValue>;
|
|
53
|
-
protected evaluate(): void;
|
|
54
|
-
/** The host already shows these values (e.g. sent as initial properties). */
|
|
55
|
-
protected shown(values: Record<string, Json>): void;
|
|
56
|
-
/**
|
|
57
|
-
* Send what changed. A bound value is sent when it differs from the last one
|
|
58
|
-
* sent; a `set()` value is always sent once. Nothing is resent merely
|
|
59
|
-
* because a callback arrived, so text the user typed into an in-out
|
|
60
|
-
* property survives other callbacks (call `set()` to pull a control back).
|
|
61
|
-
* A failed bound value is not repeated until it changes; an explicit `set()`
|
|
62
|
-
* is, after a back-off (0.25 s doubling to 30 s). Only the first failure of
|
|
63
|
-
* a failing streak is reported, so an error handler that writes a status to
|
|
64
|
-
* a broken view cannot spin.
|
|
65
|
-
*/
|
|
66
|
-
protected flush(): void;
|
|
67
|
-
protected dispatch(callback: string, args: Json[]): void;
|
|
68
|
-
protected release(): Promise<void>;
|
|
69
|
-
}
|
|
70
|
-
/** Find `export component X` / `export global Y` so most mounts need no names. */
|
|
71
|
-
export declare function exported(directory: string, file: string, kind: string): string;
|
|
72
|
-
export declare const windows: (scope: ScopeImpl) => Windows;
|
|
73
|
-
export declare const panels: (scope: ScopeImpl) => Panels;
|
|
74
|
-
export declare const dialogs: (scope: ScopeImpl) => Dialogs;
|