@domicile-desktop/sdk 0.0.0-alpha-bf67d943134a → 0.0.0-alpha-69dcbb42e4fb
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/dist/domicile-host.d.ts +0 -17
- package/dist/fake-host.js +0 -2
- package/dist/webview-element.d.ts +2 -7
- package/dist/webview-element.js +2 -1
- package/package.json +1 -1
package/dist/domicile-host.d.ts
CHANGED
|
@@ -273,11 +273,6 @@ export type DomicileHostEventMap = {
|
|
|
273
273
|
* {@link DomicileHost.displays} for the new state.
|
|
274
274
|
*/
|
|
275
275
|
displayschanged: Event;
|
|
276
|
-
/**
|
|
277
|
-
* The brightness changed. Read {@link DomicileHost.brightness} for the new
|
|
278
|
-
* value.
|
|
279
|
-
*/
|
|
280
|
-
brightnesschanged: Event;
|
|
281
276
|
/**
|
|
282
277
|
* A browser window opened, closed, navigated or changed title. Read
|
|
283
278
|
* {@link DomicileHost.browserWindows} for the new list.
|
|
@@ -408,13 +403,6 @@ export type DomicileHost = {
|
|
|
408
403
|
* is configured.
|
|
409
404
|
*/
|
|
410
405
|
lock(): void;
|
|
411
|
-
/**
|
|
412
|
-
* Set the backlight to `level`, 0 through 1.
|
|
413
|
-
*
|
|
414
|
-
* Answered with `brightnesschanged` to every chrome. The compositor never
|
|
415
|
-
* turns the screen fully off. Throws if `level` is not a number.
|
|
416
|
-
*/
|
|
417
|
-
setBrightness(level: number): void;
|
|
418
406
|
/**
|
|
419
407
|
* Tell the compositor this page has captured its old frame for a `theme`
|
|
420
408
|
* transition, so client windows can switch theme now.
|
|
@@ -480,11 +468,6 @@ export type DomicileHost = {
|
|
|
480
468
|
* frozen array after each `displayschanged`.
|
|
481
469
|
*/
|
|
482
470
|
readonly displays: readonly DomicileDisplay[] | null;
|
|
483
|
-
/**
|
|
484
|
-
* The backlight level, 0 through 1. `null` until the compositor reports,
|
|
485
|
-
* and always on a machine with no backlight.
|
|
486
|
-
*/
|
|
487
|
-
readonly brightness: number | null;
|
|
488
471
|
/**
|
|
489
472
|
* The browser windows, oldest first.
|
|
490
473
|
*
|
package/dist/fake-host.js
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
/** The event the engine dispatches when each attribute changes. */
|
|
12
12
|
const CHANGED = {
|
|
13
13
|
altKey: "modifierschanged",
|
|
14
|
-
brightness: "brightnesschanged",
|
|
15
14
|
browserWindows: "browserwindowschanged",
|
|
16
15
|
clipboard: "clipboardchanged",
|
|
17
16
|
ctrlKey: "modifierschanged",
|
|
@@ -31,7 +30,6 @@ const CHANGED = {
|
|
|
31
30
|
/** Every attribute before the compositor has sent anything. */
|
|
32
31
|
const UNDESCRIBED = {
|
|
33
32
|
altKey: null,
|
|
34
|
-
brightness: null,
|
|
35
33
|
browserWindows: null,
|
|
36
34
|
clipboard: null,
|
|
37
35
|
ctrlKey: null,
|
|
@@ -139,7 +139,8 @@ export declare const WEBVIEW_CONTENT_SIZE_CHANGE_EVENT = "domicile-content-size-
|
|
|
139
139
|
* answer with {@link DomicileFileChooserEvent.choose} or
|
|
140
140
|
* {@link DomicileFileChooserEvent.cancel}. If no listener calls
|
|
141
141
|
* `preventDefault()`, the request is canceled, so uploads and downloads fail.
|
|
142
|
-
* Every download asks for a path.
|
|
142
|
+
* Every download asks for a path. A picker lists directories with `readDir`
|
|
143
|
+
* from `@domicile-desktop/sdk/system`.
|
|
143
144
|
*/
|
|
144
145
|
export declare const WEBVIEW_FILE_CHOOSER_EVENT = "domicile-file-chooser";
|
|
145
146
|
/**
|
|
@@ -332,12 +333,6 @@ declare global {
|
|
|
332
333
|
* throws an `InvalidStateError`.
|
|
333
334
|
*/
|
|
334
335
|
choose(paths: readonly string[]): void;
|
|
335
|
-
/**
|
|
336
|
-
* The unordered entries of the directory at `path`, with directories
|
|
337
|
-
* ending in `/`. Rejects with `NotReadableError` if `path` is not a
|
|
338
|
-
* readable directory, and with `InvalidStateError` after an answer.
|
|
339
|
-
*/
|
|
340
|
-
list(path: string): Promise<string[]>;
|
|
341
336
|
/** Answer that nothing was picked. */
|
|
342
337
|
cancel(): void;
|
|
343
338
|
}
|
package/dist/webview-element.js
CHANGED
|
@@ -149,7 +149,8 @@ export const WEBVIEW_CONTENT_SIZE_CHANGE_EVENT = "domicile-content-size-change";
|
|
|
149
149
|
* answer with {@link DomicileFileChooserEvent.choose} or
|
|
150
150
|
* {@link DomicileFileChooserEvent.cancel}. If no listener calls
|
|
151
151
|
* `preventDefault()`, the request is canceled, so uploads and downloads fail.
|
|
152
|
-
* Every download asks for a path.
|
|
152
|
+
* Every download asks for a path. A picker lists directories with `readDir`
|
|
153
|
+
* from `@domicile-desktop/sdk/system`.
|
|
153
154
|
*/
|
|
154
155
|
export const WEBVIEW_FILE_CHOOSER_EVENT = "domicile-file-chooser";
|
|
155
156
|
/**
|
package/package.json
CHANGED