sparkecode-devtools 0.1.45 → 0.1.46

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": "sparkecode-devtools",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "Sparkecode Dev Tools for selecting and sharing components.",
5
5
  "type": "module",
6
6
  "main": "sparkecode-select.js",
@@ -383,7 +383,14 @@
383
383
  {
384
384
  method: 'POST',
385
385
  headers: { 'Content-Type': 'application/json' },
386
- body: JSON.stringify({ url, path, pageName }),
386
+ body: JSON.stringify({
387
+ url,
388
+ path,
389
+ pageName,
390
+ screenWidth: window.innerWidth,
391
+ screenHeight: window.innerHeight,
392
+ devicePixelRatio: window.devicePixelRatio || 1,
393
+ }),
387
394
  },
388
395
  1500
389
396
  );