@edgestation/sdk 0.4.0 → 0.6.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.
@@ -43,9 +43,11 @@
43
43
  "h": { "type": "integer", "minimum": 1 }
44
44
  }
45
45
  },
46
- "webview": {
47
- "type": "boolean",
48
- "description": "Lets the widget call api.webview, and gives its settings a Profile choice."
46
+ "permissions": {
47
+ "type": "array",
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
+ "uniqueItems": true,
50
+ "items": { "enum": ["system", "media", "apps", "audio", "fetch", "webview"] }
49
51
  },
50
52
  "settings": {
51
53
  "type": "array",
@@ -109,6 +111,10 @@
109
111
  "type": { "const": "text" },
110
112
  "default": { "type": "string", "description": "Value until the user types one." },
111
113
  "placeholder": { "type": "string", "description": "Hint shown while the field is empty." },
114
+ "secret": {
115
+ "type": "boolean",
116
+ "description": "Hides the value in the settings, as in a password field. It is still saved as plain text."
117
+ },
112
118
  "when": { "$ref": "#/definitions/when" }
113
119
  }
114
120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgestation/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.6.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",
package/dist/report.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import type { WidgetApi } from './types.js';
2
- /** Shows `error` on the widget's error card, as if a guarded callback had thrown it. */
3
- export declare function report(api: WidgetApi, error: unknown): void;
package/dist/report.js DELETED
@@ -1,6 +0,0 @@
1
- /** Shows `error` on the widget's error card, as if a guarded callback had thrown it. */
2
- export function report(api, error) {
3
- api.guard(() => {
4
- throw error;
5
- })();
6
- }