@homebridge/plugin-ui-utils 1.0.3-beta.0 → 1.0.4-beta.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/package.json CHANGED
@@ -1,25 +1,8 @@
1
1
  {
2
2
  "name": "@homebridge/plugin-ui-utils",
3
- "version": "1.0.3-beta.0",
3
+ "type": "module",
4
+ "version": "1.0.4-beta.0",
4
5
  "description": "A tool to help plugins provide custom UI screens in the Homebridge UI.",
5
- "main": "dist/index.js",
6
- "scripts": {
7
- "check": "npm install && npm outdated",
8
- "lint": "eslint src/**.ts --max-warnings=0",
9
- "build": "rimraf ./dist && tsc --project tsconfig.json && tsc --project tsconfig.ui.json",
10
- "prepublishOnly": "npm run lint && npm run build",
11
- "test": "echo \"No test script specified\" && exit 0",
12
- "test-coverage": "echo \"No test-coverage script specified\" && exit 0"
13
- },
14
- "types": "dist/index.d.ts",
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/homebridge/plugin-ui-utils.git"
18
- },
19
- "keywords": [
20
- "homebridge",
21
- "homebridge-ui"
22
- ],
23
6
  "author": {
24
7
  "name": "oznu",
25
8
  "email": "dev@oz.nu"
@@ -31,17 +14,35 @@
31
14
  }
32
15
  ],
33
16
  "license": "MIT",
17
+ "homepage": "https://github.com/homebridge/plugin-ui-utils#readme",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/homebridge/plugin-ui-utils.git"
21
+ },
34
22
  "bugs": {
35
23
  "url": "https://github.com/homebridge/plugin-ui-utils/issues"
36
24
  },
37
- "homepage": "https://github.com/homebridge/plugin-ui-utils#readme",
25
+ "keywords": [
26
+ "homebridge",
27
+ "homebridge-ui"
28
+ ],
29
+ "exports": "./dist/index.js",
30
+ "types": "dist/index.d.ts",
31
+ "scripts": {
32
+ "check": "npm install && npm outdated",
33
+ "build": "rimraf ./dist && tsc --project tsconfig.json && tsc --project tsconfig.ui.json",
34
+ "lint": "eslint .",
35
+ "lint:fix": "npm run lint -- --fix",
36
+ "prepublishOnly": "npm run lint && npm run build",
37
+ "test": "echo \"No test script specified\" && exit 0",
38
+ "test-coverage": "echo \"No test-coverage script specified\" && exit 0"
39
+ },
38
40
  "devDependencies": {
39
- "@types/node": "^20.12.2",
40
- "@typescript-eslint/eslint-plugin": "^7.5.0",
41
- "@typescript-eslint/parser": "^7.5.0",
42
- "eslint": "^8.57.0",
43
- "rimraf": "^5.0.5",
41
+ "@antfu/eslint-config": "^3.9.2",
42
+ "@types/node": "^22.9.1",
43
+ "eslint-plugin-format": "^0.1.2",
44
+ "rimraf": "^6.0.1",
44
45
  "ts-node": "^10.9.2",
45
- "typescript": "^5.4.3"
46
+ "typescript": "^5.6.3"
46
47
  }
47
48
  }
package/tsconfig.ui.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "extends": "./tsconfig.json",
3
3
  "compilerOptions": {
4
- "target": "es2022",
5
- "module": "commonjs",
4
+ "target": "ESNext",
5
+ "module": "ESNext"
6
6
  },
7
7
  "include": [
8
8
  "src/ui.ts"
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export { HomebridgePluginUiServer, RequestError } from './server';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC"}
package/dist/index.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RequestError = exports.HomebridgePluginUiServer = void 0;
4
- var server_1 = require("./server");
5
- Object.defineProperty(exports, "HomebridgePluginUiServer", { enumerable: true, get: function () { return server_1.HomebridgePluginUiServer; } });
6
- Object.defineProperty(exports, "RequestError", { enumerable: true, get: function () { return server_1.RequestError; } });
7
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mCAAkE;AAAzD,kHAAA,wBAAwB,OAAA;AAAE,sGAAA,YAAY,OAAA"}
package/dist/server.d.ts DELETED
@@ -1,96 +0,0 @@
1
- /**
2
- * Homebridge Custom Plugin UI Base Class
3
- * This provides the api to facilitate two-way communication between a plugin
4
- * custom UI HTML code and the server.
5
- *
6
- * This is a base class and is intended to be extended.
7
- *
8
- * @example
9
- * ```ts
10
- * class MyPluginUiServer extends HomebridgePluginUiServer {
11
- * constructor() {
12
- * // this MUST be called first
13
- * super();
14
- *
15
- * // this MUST be called to let the UI know your script is ready for requests
16
- * this.ready();
17
- *
18
- * // example handling requests
19
- * this.onRequest('/hello', (payload) => {
20
- * return { hello: 'world' };
21
- * });
22
- * }
23
- * }
24
- *
25
- * // start the class
26
- * (() => {
27
- * return new MyPluginUiServer();
28
- * })();
29
- * ```
30
- */
31
- export declare class HomebridgePluginUiServer {
32
- private handlers;
33
- constructor();
34
- get homebridgeStoragePath(): string | undefined;
35
- get homebridgeConfigPath(): string | undefined;
36
- get homebridgeUiVersion(): string | undefined;
37
- private sendResponse;
38
- private processRequest;
39
- /**
40
- * Let the server and UI know you are ready to receive requests.
41
- * This method must be called when you are ready to process requests!
42
- * @example
43
- * ```ts
44
- * this.ready();
45
- * ```
46
- */
47
- ready(): void;
48
- /**
49
- * Register a new request handler for a given route.
50
- * @param path the request route name
51
- * @param fn the function to handle the request and provide a response
52
- *
53
- * @example
54
- * ```ts
55
- * this.onRequest('/hello', async (payload) => {
56
- * return {hello: 'user'};
57
- * });
58
- * ```
59
- *
60
- * You can then make requests to this endpoint from the client / ui using `homebridge.request`:
61
- * @example
62
- * ```ts
63
- * homebridge.request('/hello', {some: 'payload data'});
64
- * ```
65
- *
66
- */
67
- onRequest(path: string, fn: RequestHandler): void;
68
- /**
69
- * Push an event or stream data to the UI.
70
- * @param event the event name, the plugin UI can listen for this event
71
- * @param data the data to send
72
- *
73
- * @example
74
- * ```ts
75
- * this.pushEvent('my-event', {some: 'data'});
76
- * ```
77
- *
78
- * In the client / ui, you would then listen to this event using `homebridge.addEventListener`:
79
- *
80
- * @example
81
- * ```ts
82
- * homebridge.addEventListener('my-event', (event) => {
83
- * // do something with the event
84
- * });
85
- * ```
86
- */
87
- pushEvent(event: string, data: any): void;
88
- }
89
- export declare class RequestError extends Error {
90
- requestError: any;
91
- constructor(message: string, requestError: any);
92
- }
93
- type RequestResponse = string | number | Record<any, any> | Array<any>;
94
- type RequestHandler = (arg: any) => Promise<RequestResponse> | RequestResponse;
95
- export {};
96
- //# sourceMappingURL=server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAsC;;IAkBtD,IAAI,qBAAqB,uBAExB;IAED,IAAI,oBAAoB,uBAEvB;IAED,IAAI,mBAAmB,uBAEtB;IAED,OAAO,CAAC,YAAY;YAeN,cAAc;IAoB5B;;;;;;;OAOG;IACI,KAAK,IAAI,IAAI;IAapB;;;;;;;;;;;;;;;;;;OAkBG;IACI,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,cAAc;IAIjD;;;;;;;;;;;;;;;;;;OAkBG;IACI,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG;CAc1C;AAED,qBAAa,YAAa,SAAQ,KAAK;IAC9B,YAAY,EAAE,GAAG,CAAC;gBAEb,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG;CAM/C;AAED,KAAK,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AACvE,KAAK,cAAc,GAAG,CAAC,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC,eAAe,CAAC,GAAG,eAAe,CAAC"}
package/dist/server.js DELETED
@@ -1,184 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RequestError = exports.HomebridgePluginUiServer = void 0;
4
- /**
5
- * Homebridge Custom Plugin UI Base Class
6
- * This provides the api to facilitate two-way communication between a plugin
7
- * custom UI HTML code and the server.
8
- *
9
- * This is a base class and is intended to be extended.
10
- *
11
- * @example
12
- * ```ts
13
- * class MyPluginUiServer extends HomebridgePluginUiServer {
14
- * constructor() {
15
- * // this MUST be called first
16
- * super();
17
- *
18
- * // this MUST be called to let the UI know your script is ready for requests
19
- * this.ready();
20
- *
21
- * // example handling requests
22
- * this.onRequest('/hello', (payload) => {
23
- * return { hello: 'world' };
24
- * });
25
- * }
26
- * }
27
- *
28
- * // start the class
29
- * (() => {
30
- * return new MyPluginUiServer();
31
- * })();
32
- * ```
33
- */
34
- class HomebridgePluginUiServer {
35
- handlers = {};
36
- constructor() {
37
- if (!process.send) {
38
- console.error('This script can only run as a child process.');
39
- process.exit(1);
40
- }
41
- process.addListener('message', (request) => {
42
- switch (request.action) {
43
- case 'request': {
44
- this.processRequest(request);
45
- }
46
- }
47
- });
48
- }
49
- get homebridgeStoragePath() {
50
- return process.env.HOMEBRIDGE_STORAGE_PATH;
51
- }
52
- get homebridgeConfigPath() {
53
- return process.env.HOMEBRIDGE_CONFIG_PATH;
54
- }
55
- get homebridgeUiVersion() {
56
- return process.env.HOMEBRIDGE_UI_VERSION;
57
- }
58
- sendResponse(request, data, success = true) {
59
- if (!process.send) {
60
- return;
61
- }
62
- process.send({
63
- action: 'response',
64
- payload: {
65
- requestId: request.requestId,
66
- success: success,
67
- data: data,
68
- },
69
- });
70
- }
71
- async processRequest(request) {
72
- if (this.handlers[request.path]) {
73
- try {
74
- console.log('Incoming Request:', request.path);
75
- const resp = await this.handlers[request.path](request.body || {});
76
- return this.sendResponse(request, resp, true);
77
- }
78
- catch (e) {
79
- if (e instanceof RequestError) {
80
- return this.sendResponse(request, { message: e.message, error: e.requestError }, false);
81
- }
82
- else {
83
- console.error(e);
84
- return this.sendResponse(request, { message: e.message }, false);
85
- }
86
- }
87
- }
88
- else {
89
- console.error('No Registered Handler:', request.path);
90
- return this.sendResponse(request, { message: 'Not Found', path: request.path }, false);
91
- }
92
- }
93
- /**
94
- * Let the server and UI know you are ready to receive requests.
95
- * This method must be called when you are ready to process requests!
96
- * @example
97
- * ```ts
98
- * this.ready();
99
- * ```
100
- */
101
- ready() {
102
- if (!process.send) {
103
- return;
104
- }
105
- process.send({
106
- action: 'ready',
107
- payload: {
108
- server: true,
109
- },
110
- });
111
- }
112
- /**
113
- * Register a new request handler for a given route.
114
- * @param path the request route name
115
- * @param fn the function to handle the request and provide a response
116
- *
117
- * @example
118
- * ```ts
119
- * this.onRequest('/hello', async (payload) => {
120
- * return {hello: 'user'};
121
- * });
122
- * ```
123
- *
124
- * You can then make requests to this endpoint from the client / ui using `homebridge.request`:
125
- * @example
126
- * ```ts
127
- * homebridge.request('/hello', {some: 'payload data'});
128
- * ```
129
- *
130
- */
131
- onRequest(path, fn) {
132
- this.handlers[path] = fn;
133
- }
134
- /**
135
- * Push an event or stream data to the UI.
136
- * @param event the event name, the plugin UI can listen for this event
137
- * @param data the data to send
138
- *
139
- * @example
140
- * ```ts
141
- * this.pushEvent('my-event', {some: 'data'});
142
- * ```
143
- *
144
- * In the client / ui, you would then listen to this event using `homebridge.addEventListener`:
145
- *
146
- * @example
147
- * ```ts
148
- * homebridge.addEventListener('my-event', (event) => {
149
- * // do something with the event
150
- * });
151
- * ```
152
- */
153
- pushEvent(event, data) {
154
- if (!process.send) {
155
- return;
156
- }
157
- process.send({
158
- action: 'stream',
159
- payload: {
160
- event: event,
161
- data: data,
162
- },
163
- });
164
- }
165
- }
166
- exports.HomebridgePluginUiServer = HomebridgePluginUiServer;
167
- class RequestError extends Error {
168
- requestError;
169
- constructor(message, requestError) {
170
- super(message);
171
- Object.setPrototypeOf(this, RequestError.prototype);
172
- this.requestError = requestError;
173
- }
174
- }
175
- exports.RequestError = RequestError;
176
- setInterval(() => {
177
- if (!process.connected) {
178
- process.kill(process.pid, 'SIGTERM');
179
- }
180
- }, 10000);
181
- process.on('disconnect', () => {
182
- process.kill(process.pid, 'SIGTERM');
183
- });
184
- //# sourceMappingURL=server.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,wBAAwB;IAC3B,QAAQ,GAAmC,EAAE,CAAC;IAEtD;QACE,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAClB,OAAO,CAAC,KAAK,CAAC,8CAA8C,CAAC,CAAC;YAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC,OAAY,EAAE,EAAE;YAC9C,QAAQ,OAAO,CAAC,MAAM,EAAE,CAAC;gBACvB,KAAK,SAAS,CAAC,CAAC,CAAC;oBACf,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;gBAC/B,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;IAEL,CAAC;IAED,IAAI,qBAAqB;QACvB,OAAO,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAC7C,CAAC;IAED,IAAI,oBAAoB;QACtB,OAAO,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;IAC5C,CAAC;IAED,IAAI,mBAAmB;QACrB,OAAO,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC;IAC3C,CAAC;IAEO,YAAY,CAAC,OAAY,EAAE,IAAS,EAAE,OAAO,GAAG,IAAI;QAC1D,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAClB,OAAO;QACT,CAAC;QAED,OAAO,CAAC,I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,YAAY,EAAE,GAAG,EAAE;IAC5B,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;AACvC,CAAC,CAAC,CAAC"}
package/dist/ui.d.ts DELETED
@@ -1,62 +0,0 @@
1
- /**
2
- * This script is injected into a plugins custom settings ui by the Homebridge UI
3
- * You should not include it in your own code, however you can use it for type information if desired.
4
- * It provides the interface to interact with the Homebridge UI service.
5
- */
6
- declare let EventTargetConstructor: {
7
- new (): EventTarget;
8
- prototype: EventTarget;
9
- };
10
- declare class HomebridgePluginUi extends EventTargetConstructor {
11
- private origin;
12
- private lastBodyHeight;
13
- private linkRequests;
14
- toast: HomebridgeUiToastHelper;
15
- plugin: any;
16
- serverEnv: any;
17
- constructor();
18
- private _handleIncomingMessage;
19
- _postMessage(message: any): void;
20
- private _setBodyClass;
21
- private _setInlineStyle;
22
- private _setLinkElement;
23
- private _monitorFrameHeight;
24
- private _requestResponse;
25
- fixScrollHeight(): void;
26
- closeSettings(): void;
27
- showSpinner(): void;
28
- hideSpinner(): void;
29
- showSchemaForm(): void;
30
- hideSchemaForm(): void;
31
- createForm(schema: any, data: any, submitButton?: string, cancelButton?: string): HomebridgeUiFormHelper;
32
- endForm(): void;
33
- getPluginConfig(): Promise<any>;
34
- updatePluginConfig(pluginConfig: any): Promise<any>;
35
- savePluginConfig(): Promise<any>;
36
- getPluginConfigSchema(): Promise<any>;
37
- getCachedAccessories(): Promise<Record<string, string>>;
38
- request(path: string, body?: any): Promise<any>;
39
- i18nCurrentLang(): Promise<string>;
40
- i18nGetTranslation(): Promise<Record<string, string>>;
41
- }
42
- declare class HomebridgeUiToastHelper {
43
- private _postMessage;
44
- success(message: string, title?: string): void;
45
- error(message: string, title?: string): void;
46
- warning(message: string, title?: string): void;
47
- info(message: string, title?: string): void;
48
- }
49
- declare class HomebridgeUiFormHelper {
50
- private parent;
51
- private formId;
52
- private _changeHandle?;
53
- private _submitHandle?;
54
- private _cancelHandle?;
55
- end: () => void;
56
- constructor(parent: HomebridgePluginUi, schema: Record<string, any>, data: Record<string, any>, submitButton?: string, cancelButton?: string);
57
- private _eventHandle;
58
- onChange(fn: any): void;
59
- onSubmit(fn: any): void;
60
- onCancel(fn: any): void;
61
- }
62
- //# sourceMappingURL=ui.d.ts.map
package/dist/ui.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../src/ui.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,QAAA,IAAI,sBAAsB;;;CAAqB,CAAC;AA6ChD,cAAM,kBAAmB,SAAQ,sBAAsB;IACrD,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,cAAc,CAAK;IAC3B,OAAO,CAAC,YAAY,CAA0B;IAEvC,KAAK,0BAAiC;IACtC,MAAM,MAAgC;IACtC,SAAS,MAAmC;;YAOrC,sBAAsB;IAwC7B,YAAY,CAAC,OAAO,KAAA;IAI3B,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,eAAe;IAYvB,OAAO,CAAC,mBAAmB;YAkBb,gBAAgB;IAuBvB,eAAe;IAIf,aAAa,IAAI,IAAI;IAIrB,WAAW,IAAI,IAAI;IAInB,WAAW,IAAI,IAAI;IAInB,cAAc,IAAI,IAAI;IAItB,cAAc,IAAI,IAAI;IAItB,UAAU,CAAC,MAAM,KAAA,EAAE,IAAI,KAAA,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM;IAIrE,OAAO;IAID,eAAe;IAIf,kBAAkB,CAAC,YAAY,KAAA;IAI/B,gBAAgB;IAIhB,qBAAqB;IAIrB,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAIvD,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG;IAIhC,eAAe,IAAI,OAAO,CAAC,MAAM,CAAC;IAIlC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