@vestra-player/sdk 1.5.7 → 1.5.9
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 +22 -0
- package/README.md +4 -1
- package/bin/vestra-plugin.mjs +194 -17
- package/dist/commands.d.ts +1 -2
- package/dist/commands.js +1 -2
- package/dist/i18n-tools.d.ts +67 -0
- package/dist/i18n-tools.js +731 -0
- package/dist/i18n.d.ts +130 -0
- package/dist/i18n.js +673 -0
- package/dist/player-runtime.d.ts +1 -0
- package/dist/player-runtime.js +1 -0
- package/dist/plugin/appearance.js +27 -1
- package/dist/plugin/language.d.ts +4 -0
- package/dist/plugin/language.js +5 -0
- package/dist/plugin/osd.d.ts +3 -0
- package/dist/plugin/osd.js +45 -9
- package/dist/plugin/packages.js +11 -65
- package/dist/plugin/resolvers.js +64 -0
- package/dist/plugin/runtime.d.ts +3 -1
- package/dist/plugin/runtime.js +6 -0
- package/dist/plugin/scope.d.ts +1 -0
- package/dist/plugin/scope.js +2 -0
- package/dist/plugin/testing.d.ts +155 -4
- package/dist/plugin/testing.js +332 -50
- package/dist/plugin/types.d.ts +247 -46
- package/dist/plugin/ui.js +4 -1
- package/dist/plugin/window.d.ts +4 -0
- package/dist/plugin/window.js +8 -0
- package/dist/wire.d.ts +29 -14
- package/dist/wire.js +12 -12
- package/llms-full.txt +399 -52
- package/llms.txt +44 -40
- package/package.json +1 -1
- package/slint/vestra/markdown.slint +5 -5
- package/slint/vestra/widgets.slint +4 -4
package/dist/wire.js
CHANGED
|
@@ -69,6 +69,7 @@ export function createWire(transport) {
|
|
|
69
69
|
commands: commandClient(transport),
|
|
70
70
|
dialogs: {
|
|
71
71
|
open: (options) => transport.request("dialogs.open", options),
|
|
72
|
+
/** Message and detail are templates formatted with `args` (player 0.4.3). */
|
|
72
73
|
confirm: (options) => transport.request("dialogs.confirm", options),
|
|
73
74
|
},
|
|
74
75
|
/** The main window: its state, size, level, pointer hiding and picture-in-picture. */
|
|
@@ -99,6 +100,8 @@ export function createWire(transport) {
|
|
|
99
100
|
/** The palette (`ui.theme` to change it). */
|
|
100
101
|
appearance: {
|
|
101
102
|
set: (theme) => transport.request("appearance.set", { theme }),
|
|
103
|
+
/** The interface language for the next start (player 0.4.3). */
|
|
104
|
+
setLanguage: (language) => transport.request("appearance.setLanguage", { language }),
|
|
102
105
|
},
|
|
103
106
|
/** Settings pages in the player's options window (`ui.settings`). */
|
|
104
107
|
settings: {
|
|
@@ -190,9 +193,16 @@ export function createWire(transport) {
|
|
|
190
193
|
set: (flags) => transport.request("sequence.set", { flags }),
|
|
191
194
|
step: (direction) => transport.request("sequence.step", { direction }),
|
|
192
195
|
},
|
|
196
|
+
/** `text` is a template in the plugin's catalog, formatted with `args` (player 0.4.3). */
|
|
193
197
|
osd: {
|
|
194
|
-
show: (text) => transport.request("osd.show", {
|
|
195
|
-
|
|
198
|
+
show: (text, args) => transport.request("osd.show", {
|
|
199
|
+
text,
|
|
200
|
+
...(args === undefined ? {} : { args }),
|
|
201
|
+
}),
|
|
202
|
+
panel: (text, args) => transport.request("osd.panel", {
|
|
203
|
+
text,
|
|
204
|
+
...(args === undefined ? {} : { args }),
|
|
205
|
+
}),
|
|
196
206
|
},
|
|
197
207
|
layout: {
|
|
198
208
|
state: () => transport.request("layout.state"),
|
|
@@ -258,16 +268,6 @@ export function createWire(transport) {
|
|
|
258
268
|
validateArchive: (file) => transport.request("packages.validateArchive", {
|
|
259
269
|
file,
|
|
260
270
|
}),
|
|
261
|
-
/** `requestId` recovers a lost first reply in this owner session. */
|
|
262
|
-
trial: (token, requestId) => transport.request("packages.trial", {
|
|
263
|
-
token,
|
|
264
|
-
requestId,
|
|
265
|
-
}),
|
|
266
|
-
trialStateByRequest: (requestId) => transport.request("packages.trialStateByRequest", {
|
|
267
|
-
requestId,
|
|
268
|
-
}),
|
|
269
|
-
trialState: (trialId) => transport.request("packages.trialState", { trialId }),
|
|
270
|
-
stopTrial: (trialId) => transport.request("packages.stopTrial", { trialId }),
|
|
271
271
|
installed: (id) => transport.request("packages.installed", { id }),
|
|
272
272
|
/** `source` and `replace` are sent only when given (player 0.2.0). */
|
|
273
273
|
install: (token, expectedRevision, requestId, options = {}) => transport.request("packages.install", {
|