@phreshos/react 0.1.36 → 0.1.37
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/desktop-provider.js +1 -1
- package/package.json +3 -3
package/dist/desktop-provider.js
CHANGED
|
@@ -52,7 +52,7 @@ function viewportState(desktop) {
|
|
|
52
52
|
const publish = () => { const state = complete(); if (state)
|
|
53
53
|
subscriber(state); };
|
|
54
54
|
const stopResize = desktop.viewport.subscribe("resize", size => { latest = { ...latest, size }; publish(); });
|
|
55
|
-
const stopMove = desktop.viewport.subscribe("move",
|
|
55
|
+
const stopMove = desktop.viewport.subscribe("move", move => { latest = { ...latest, offset: move.offset }; publish(); });
|
|
56
56
|
return () => { stopResize(); stopMove(); };
|
|
57
57
|
});
|
|
58
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phreshos/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"description": "Runtime-neutral React adapters for PhreshOS contracts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
"prepack": "node --run build"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@phreshos/core": "^0.1.
|
|
49
|
+
"@phreshos/core": "^0.1.69",
|
|
50
50
|
"react": "^19.2.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@phreshos/core": "^0.1.
|
|
53
|
+
"@phreshos/core": "^0.1.69",
|
|
54
54
|
"@testing-library/dom": "^10.4.1",
|
|
55
55
|
"@testing-library/react": "^16.3.0",
|
|
56
56
|
"@types/react": "^19.2.18",
|