@vidra-dev/sdk 0.2.0 → 0.4.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@vidra-dev/sdk",
3
- "version": "0.2.0",
4
- "description": "Framework-agnostic TypeScript SDK for Vidra bridge (JS ↔ .NET MAUI)",
3
+ "version": "0.4.0",
4
+ "description": "Framework-agnostic TypeScript SDK for Vidra bridge (JS \u2194 .NET MAUI)",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -10,7 +10,7 @@
10
10
  "dist"
11
11
  ],
12
12
  "scripts": {
13
- "build": "tsc",
13
+ "build": "tsc && node scripts/emit-manifest.mjs",
14
14
  "dev": "tsc --watch",
15
15
  "test": "vitest run",
16
16
  "test:watch": "vitest",
@@ -1,17 +0,0 @@
1
- import type { EventHandler } from "./types.js";
2
- import { type WindowInfo } from "./generated/appWindow.js";
3
- export type AppWindowChangedHandler = EventHandler<WindowInfo>;
4
- export interface ConfigureAppWindowOptions {
5
- title?: string | null;
6
- width?: number | null;
7
- height?: number | null;
8
- }
9
- declare module "./generated/appWindow.js" {
10
- interface AppWindowProxy {
11
- configure(args: ConfigureAppWindowOptions): Promise<WindowInfo>;
12
- onResized(handler: AppWindowChangedHandler): () => void;
13
- onStateChanged(handler: AppWindowChangedHandler): () => void;
14
- }
15
- }
16
- export {};
17
- //# sourceMappingURL=appWindow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appWindow.d.ts","sourceRoot":"","sources":["../src/appWindow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAE3E,MAAM,MAAM,uBAAuB,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC;AAC/D,MAAM,WAAW,yBAAyB;IACxC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,OAAO,QAAQ,0BAA0B,CAAC;IACxC,UAAU,cAAc;QACtB,SAAS,CAAC,IAAI,EAAE,yBAAyB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;QAChE,SAAS,CAAC,OAAO,EAAE,uBAAuB,GAAG,MAAM,IAAI,CAAC;QACxD,cAAc,CAAC,OAAO,EAAE,uBAAuB,GAAG,MAAM,IAAI,CAAC;KAC9D;CACF;AAcD,OAAO,EAAE,CAAC"}
package/dist/appWindow.js DELETED
@@ -1,9 +0,0 @@
1
- import { vidra } from "./singleton.js";
2
- import { AppWindowProxy } from "./generated/appWindow.js";
3
- AppWindowProxy.prototype.onResized = (handler) => {
4
- return vidra.on("appWindow.resized", handler);
5
- };
6
- AppWindowProxy.prototype.onStateChanged = (handler) => {
7
- return vidra.on("appWindow.stateChanged", handler);
8
- };
9
- //# sourceMappingURL=appWindow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appWindow.js","sourceRoot":"","sources":["../src/appWindow.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,cAAc,EAAmB,MAAM,0BAA0B,CAAC;AAiB3E,cAAc,CAAC,SAAS,CAAC,SAAS,GAAG,CACnC,OAAgC,EACpB,EAAE;IACd,OAAO,KAAK,CAAC,EAAE,CAAa,mBAAmB,EAAE,OAAO,CAAC,CAAC;AAC5D,CAAC,CAAC;AAEF,cAAc,CAAC,SAAS,CAAC,cAAc,GAAG,CACxC,OAAgC,EACpB,EAAE;IACd,OAAO,KAAK,CAAC,EAAE,CAAa,wBAAwB,EAAE,OAAO,CAAC,CAAC;AACjE,CAAC,CAAC"}
package/dist/battery.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import type { EventHandler } from "./types.js";
2
- import { type BatteryStatus } from "./generated/battery.js";
3
- export type BatteryChangedHandler = EventHandler<BatteryStatus>;
4
- declare module "./generated/battery.js" {
5
- interface BatteryProxy {
6
- onChanged(handler: BatteryChangedHandler): () => void;
7
- }
8
- }
9
- export {};
10
- //# sourceMappingURL=battery.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"battery.d.ts","sourceRoot":"","sources":["../src/battery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE1E,MAAM,MAAM,qBAAqB,GAAG,YAAY,CAAC,aAAa,CAAC,CAAC;AAEhE,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAU,YAAY;QACpB,SAAS,CAAC,OAAO,EAAE,qBAAqB,GAAG,MAAM,IAAI,CAAC;KACvD;CACF;AAQD,OAAO,EAAE,CAAC"}
package/dist/battery.js DELETED
@@ -1,6 +0,0 @@
1
- import { vidra } from "./singleton.js";
2
- import { BatteryProxy } from "./generated/battery.js";
3
- BatteryProxy.prototype.onChanged = (handler) => {
4
- return vidra.on("battery.changed", handler);
5
- };
6
- //# sourceMappingURL=battery.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"battery.js","sourceRoot":"","sources":["../src/battery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAE,YAAY,EAAsB,MAAM,wBAAwB,CAAC;AAU1E,YAAY,CAAC,SAAS,CAAC,SAAS,GAAG,CACjC,OAA8B,EAClB,EAAE;IACd,OAAO,KAAK,CAAC,EAAE,CAAgB,iBAAiB,EAAE,OAAO,CAAC,CAAC;AAC7D,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import type { EventHandler } from "./types.js";
2
- import { type ConnectivityStatus } from "./generated/connectivity.js";
3
- export type ConnectivityChangedHandler = EventHandler<ConnectivityStatus>;
4
- declare module "./generated/connectivity.js" {
5
- interface ConnectivityProxy {
6
- onChanged(handler: ConnectivityChangedHandler): () => void;
7
- }
8
- }
9
- export {};
10
- //# sourceMappingURL=connectivity.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connectivity.d.ts","sourceRoot":"","sources":["../src/connectivity.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,0BAA0B,GAAG,YAAY,CAAC,kBAAkB,CAAC,CAAC;AAE1E,OAAO,QAAQ,6BAA6B,CAAC;IAC3C,UAAU,iBAAiB;QACzB,SAAS,CAAC,OAAO,EAAE,0BAA0B,GAAG,MAAM,IAAI,CAAC;KAC5D;CACF;AAQD,OAAO,EAAE,CAAC"}
@@ -1,6 +0,0 @@
1
- import { vidra } from "./singleton.js";
2
- import { ConnectivityProxy, } from "./generated/connectivity.js";
3
- ConnectivityProxy.prototype.onChanged = (handler) => {
4
- return vidra.on("connectivity.changed", handler);
5
- };
6
- //# sourceMappingURL=connectivity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connectivity.js","sourceRoot":"","sources":["../src/connectivity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EACL,iBAAiB,GAElB,MAAM,6BAA6B,CAAC;AAUrC,iBAAiB,CAAC,SAAS,CAAC,SAAS,GAAG,CACtC,OAAmC,EACvB,EAAE;IACd,OAAO,KAAK,CAAC,EAAE,CAAqB,sBAAsB,EAAE,OAAO,CAAC,CAAC;AACvE,CAAC,CAAC"}