@mywallpaper/addon-sdk 2.16.0 → 2.17.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@mywallpaper/addon-sdk",
3
- "version": "2.16.0",
3
+ "version": "2.17.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",
@@ -928,5 +928,18 @@
928
928
  }
929
929
  }
930
930
 
931
- console.warn('[MyWallpaper] SDK v2.14.0 ready:', layerId)
931
+ // ==========================================================================
932
+ // CURSOR SUPPORT: Forward mouse position to parent for cursor overlays
933
+ // This allows cursor addons to track mouse even when over addon iframes
934
+ // ==========================================================================
935
+ window.addEventListener('mousemove', function (e) {
936
+ window.parent.postMessage({
937
+ type: 'ADDON_MOUSE_MOVE',
938
+ layerId: layerId,
939
+ clientX: e.clientX,
940
+ clientY: e.clientY
941
+ }, '*')
942
+ }, { passive: true })
943
+
944
+ console.warn('[MyWallpaper] SDK v2.17.0 ready:', layerId)
932
945
  })()