@edgestation/sdk 0.9.0 → 0.10.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/dist/types/api.d.ts +6 -0
- package/dist/types/manifest.d.ts +1 -1
- package/manifest.schema.json +1 -1
- package/package.json +1 -1
package/dist/types/api.d.ts
CHANGED
|
@@ -102,6 +102,12 @@ export interface WidgetApi {
|
|
|
102
102
|
* returned function closes it earlier.
|
|
103
103
|
*/
|
|
104
104
|
webview(target: HTMLElement, url: string, options?: WebviewOptions): Cleanup;
|
|
105
|
+
/**
|
|
106
|
+
* Opens the web page `url` in the default browser of the machine, outside EdgeStation. Call
|
|
107
|
+
* it when the user taps a link, because the browser comes in front of the other apps. Only
|
|
108
|
+
* `http` and `https` addresses open. For others, the promise rejects. Needs `links`.
|
|
109
|
+
*/
|
|
110
|
+
openUrl(url: string): Promise<void>;
|
|
105
111
|
/**
|
|
106
112
|
* Replaces the native scrollbars of `viewport` with the overlay scrollbars of the app.
|
|
107
113
|
* `viewport` is an element of the widget that scrolls, and the overlay scrollbars show while
|
package/dist/types/manifest.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { WidgetSetting } from './settings.js';
|
|
|
3
3
|
* A part of `api` that a widget must ask for in `permissions`. `system` also gives
|
|
4
4
|
* `topPrograms`. The other members of `api` need no permission.
|
|
5
5
|
*/
|
|
6
|
-
export type WidgetPermission = 'system' | 'media' | 'apps' | 'audio' | 'fetch' | 'webview';
|
|
6
|
+
export type WidgetPermission = 'system' | 'media' | 'apps' | 'audio' | 'fetch' | 'webview' | 'links';
|
|
7
7
|
/**
|
|
8
8
|
* The contents of the `manifest.json` of a widget, as the host gives it to the widget in
|
|
9
9
|
* `api.manifest`. The file does not contain `id`. The host sets `id` to the folder name of the
|
package/manifest.schema.json
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"type": "array",
|
|
48
48
|
"description": "The parts of api the widget uses. The marketplace shows what each one allows before an install. A call to a part not listed here shows the error card. system also gives api.topPrograms. webview also gives the widget's settings a Profile choice.",
|
|
49
49
|
"uniqueItems": true,
|
|
50
|
-
"items": { "enum": ["system", "media", "apps", "audio", "fetch", "webview"] }
|
|
50
|
+
"items": { "enum": ["system", "media", "apps", "audio", "fetch", "webview", "links"] }
|
|
51
51
|
},
|
|
52
52
|
"settings": {
|
|
53
53
|
"type": "array",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edgestation/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Types and build helpers to write widgets for EdgeStation, the secondary display dashboard made for the Corsair Xeneon Edge, in plain JavaScript, Svelte, React or Vue.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"edgestation",
|