@mywallpaper/addon-sdk 2.10.0 → 2.11.1

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/README.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  Official SDK for building MyWallpaper addons.
4
4
 
5
+ ## Documentation
6
+
7
+ Full documentation for building MyWallpaper addons is available in the [docs/](docs/) directory.
8
+
9
+ To run the documentation site locally:
10
+
11
+ ```bash
12
+ cd docs
13
+ npm install
14
+ npm run dev
15
+ ```
16
+
17
+ The documentation includes:
18
+ - [Getting Started Guide](docs/docs/guide/getting-started.md)
19
+ - [API Reference](docs/docs/api/overview.md)
20
+ - [Manifest Specification](docs/docs/guide/manifest.md)
21
+ - [Examples](docs/docs/examples/basic.md)
22
+
5
23
  ## Installation
6
24
 
7
25
  ```bash
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mywallpaper/addon-sdk - TypeScript Types v2.5
2
+ * @mywallpaper/addon-sdk - TypeScript Types v2.11.0
3
3
  *
4
4
  * Complete type definitions for building MyWallpaper addons.
5
5
  * These types describe the runtime API available via window.MyWallpaper
@@ -464,7 +464,7 @@ interface MyWallpaperAPI {
464
464
  /**
465
465
  * SDK version.
466
466
  */
467
- readonly version: '2.4.0';
467
+ readonly version: '2.11.0';
468
468
  /**
469
469
  * User language (detected by host).
470
470
  */
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mywallpaper/addon-sdk - TypeScript Types v2.5
2
+ * @mywallpaper/addon-sdk - TypeScript Types v2.11.0
3
3
  *
4
4
  * Complete type definitions for building MyWallpaper addons.
5
5
  * These types describe the runtime API available via window.MyWallpaper
@@ -464,7 +464,7 @@ interface MyWallpaperAPI {
464
464
  /**
465
465
  * SDK version.
466
466
  */
467
- readonly version: '2.4.0';
467
+ readonly version: '2.11.0';
468
468
  /**
469
469
  * User language (detected by host).
470
470
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mywallpaper/addon-sdk - TypeScript Types v2.5
2
+ * @mywallpaper/addon-sdk - TypeScript Types v2.11.0
3
3
  *
4
4
  * Complete type definitions for building MyWallpaper addons.
5
5
  * These types describe the runtime API available via window.MyWallpaper
@@ -449,7 +449,7 @@ interface MyWallpaperAPI {
449
449
  /**
450
450
  * SDK version.
451
451
  */
452
- readonly version: '2.4.0';
452
+ readonly version: '2.11.0';
453
453
  /**
454
454
  * User language (detected by host).
455
455
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mywallpaper/addon-sdk - TypeScript Types v2.5
2
+ * @mywallpaper/addon-sdk - TypeScript Types v2.11.0
3
3
  *
4
4
  * Complete type definitions for building MyWallpaper addons.
5
5
  * These types describe the runtime API available via window.MyWallpaper
@@ -449,7 +449,7 @@ interface MyWallpaperAPI {
449
449
  /**
450
450
  * SDK version.
451
451
  */
452
- readonly version: '2.4.0';
452
+ readonly version: '2.11.0';
453
453
  /**
454
454
  * User language (detected by host).
455
455
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mywallpaper/addon-sdk",
3
- "version": "2.10.0",
3
+ "version": "2.11.1",
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",
@@ -218,6 +218,8 @@
218
218
  // Handle file access response from host
219
219
  // Host sends us a Blob object (cloned via structured clone)
220
220
  // We create our own blob URL from it
221
+ // Note: Host sends via sendBlobToAddon which does NOT use sendToLayer,
222
+ // so fields are at the top level (d.requestId, d.granted, etc.)
221
223
  var fileOp = pendingFileAccess.get(d.requestId)
222
224
  if (fileOp) {
223
225
  pendingFileAccess.delete(d.requestId)
@@ -234,10 +236,10 @@
234
236
 
235
237
  case 'NETWORK_ACCESS_RESPONSE':
236
238
  // Handle network domain access response from host
237
- var netAccessOp = pendingNetworkAccess.get(d.requestId)
239
+ var netAccessOp = pendingNetworkAccess.get(d.payload.requestId)
238
240
  if (netAccessOp) {
239
- pendingNetworkAccess.delete(d.requestId)
240
- netAccessOp.resolve({ granted: d.granted === true, error: d.error })
241
+ pendingNetworkAccess.delete(d.payload.requestId)
242
+ netAccessOp.resolve({ granted: d.payload.granted === true, error: d.payload.error })
241
243
  }
242
244
  break
243
245
 
@@ -414,7 +416,7 @@
414
416
  window.MyWallpaper = {
415
417
  get config() { return config },
416
418
  layerId: layerId,
417
- version: '2.5',
419
+ version: '2.11.0',
418
420
 
419
421
  onSettingsChange: function (fn) { if (typeof fn === 'function') settingsCallbacks.push(fn) },
420
422
 
@@ -439,7 +441,7 @@
439
441
  isReady = true
440
442
  opts = opts || {}
441
443
  send('ADDON_READY', {
442
- version: '2.5',
444
+ version: '2.11.0',
443
445
  capabilities: opts.capabilities || [],
444
446
  subscribedEvents: opts.subscribedEvents || []
445
447
  })
@@ -788,5 +790,5 @@
788
790
  }
789
791
  }
790
792
 
791
- console.warn('[MyWallpaper] SDK v2.5 ready:', layerId)
793
+ console.warn('[MyWallpaper] SDK v2.11.0 ready:', layerId)
792
794
  })()