@mywallpaper/addon-sdk 2.14.0 → 2.15.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/index.d.mts CHANGED
@@ -19,7 +19,7 @@
19
19
  * System events that addons can subscribe to.
20
20
  * Subscribe via `window.MyWallpaper.onEvent(eventType, callback)`
21
21
  */
22
- type SystemEventType = 'viewport:resize' | 'theme:change' | 'visibility:change' | 'layer:focus' | 'layer:blur' | 'app:idle' | 'app:active';
22
+ type SystemEventType = 'viewport:resize' | 'theme:change' | 'visibility:change' | 'layer:focus' | 'layer:blur' | 'app:idle' | 'app:active' | 'cursor:move';
23
23
  /**
24
24
  * Event data payloads for each system event type.
25
25
  * TypeScript will infer the correct payload type based on event name.
@@ -46,6 +46,10 @@ interface SystemEventData {
46
46
  idleSeconds: number;
47
47
  };
48
48
  'app:active': Record<string, never>;
49
+ 'cursor:move': {
50
+ x: number;
51
+ y: number;
52
+ };
49
53
  }
50
54
  /**
51
55
  * Capabilities that an addon can declare.
package/dist/index.d.ts CHANGED
@@ -19,7 +19,7 @@
19
19
  * System events that addons can subscribe to.
20
20
  * Subscribe via `window.MyWallpaper.onEvent(eventType, callback)`
21
21
  */
22
- type SystemEventType = 'viewport:resize' | 'theme:change' | 'visibility:change' | 'layer:focus' | 'layer:blur' | 'app:idle' | 'app:active';
22
+ type SystemEventType = 'viewport:resize' | 'theme:change' | 'visibility:change' | 'layer:focus' | 'layer:blur' | 'app:idle' | 'app:active' | 'cursor:move';
23
23
  /**
24
24
  * Event data payloads for each system event type.
25
25
  * TypeScript will infer the correct payload type based on event name.
@@ -46,6 +46,10 @@ interface SystemEventData {
46
46
  idleSeconds: number;
47
47
  };
48
48
  'app:active': Record<string, never>;
49
+ 'cursor:move': {
50
+ x: number;
51
+ y: number;
52
+ };
49
53
  }
50
54
  /**
51
55
  * Capabilities that an addon can declare.
@@ -19,7 +19,7 @@
19
19
  * System events that addons can subscribe to.
20
20
  * Subscribe via `window.MyWallpaper.onEvent(eventType, callback)`
21
21
  */
22
- type SystemEventType = 'viewport:resize' | 'theme:change' | 'visibility:change' | 'layer:focus' | 'layer:blur' | 'app:idle' | 'app:active';
22
+ type SystemEventType = 'viewport:resize' | 'theme:change' | 'visibility:change' | 'layer:focus' | 'layer:blur' | 'app:idle' | 'app:active' | 'cursor:move';
23
23
  /**
24
24
  * Event data payloads for each system event type.
25
25
  * TypeScript will infer the correct payload type based on event name.
@@ -46,6 +46,10 @@ interface SystemEventData {
46
46
  idleSeconds: number;
47
47
  };
48
48
  'app:active': Record<string, never>;
49
+ 'cursor:move': {
50
+ x: number;
51
+ y: number;
52
+ };
49
53
  }
50
54
  /**
51
55
  * Capabilities that an addon can declare.
@@ -19,7 +19,7 @@
19
19
  * System events that addons can subscribe to.
20
20
  * Subscribe via `window.MyWallpaper.onEvent(eventType, callback)`
21
21
  */
22
- type SystemEventType = 'viewport:resize' | 'theme:change' | 'visibility:change' | 'layer:focus' | 'layer:blur' | 'app:idle' | 'app:active';
22
+ type SystemEventType = 'viewport:resize' | 'theme:change' | 'visibility:change' | 'layer:focus' | 'layer:blur' | 'app:idle' | 'app:active' | 'cursor:move';
23
23
  /**
24
24
  * Event data payloads for each system event type.
25
25
  * TypeScript will infer the correct payload type based on event name.
@@ -46,6 +46,10 @@ interface SystemEventData {
46
46
  idleSeconds: number;
47
47
  };
48
48
  'app:active': Record<string, never>;
49
+ 'cursor:move': {
50
+ x: number;
51
+ y: number;
52
+ };
49
53
  }
50
54
  /**
51
55
  * Capabilities that an addon can declare.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mywallpaper/addon-sdk",
3
- "version": "2.14.0",
3
+ "version": "2.15.0",
4
4
  "description": "SDK for building MyWallpaper addons - TypeScript types, manifest validation, and utilities",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",