@phreshos/react 0.1.11 → 0.1.12

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
@@ -111,8 +111,9 @@ because either SDK was imported, and an unselected system value never enters the
111
111
  Client. `pointerPosition` is permission-guarded: selecting it does not request
112
112
  permission, and resolution fails unless the Program already holds `pointer`.
113
113
  The provider renders its optional fallback, or `null`, until every selected
114
- value resolves. `useDesktopPreferences()` is a pure state adapter; document
115
- presentation remains an explicit concern of the consuming interface.
114
+ value resolves. `useDesktopPreferences()` is a pure state adapter. The System
115
+ communicates its effective scheme through the Client iframe, while each Client
116
+ HTML document declares which schemes it supports.
116
117
 
117
118
  ```tsx
118
119
  import { current } from "@phreshos/client"
@@ -1,7 +1,7 @@
1
- import type { ServiceHandler } from "@phreshos/client";
1
+ import type { Service } from "@phreshos/client";
2
2
  /** Live availability of one exact service identity. */
3
3
  export type ServiceState = Readonly<{
4
4
  enabled: boolean;
5
5
  }>;
6
6
  /** Explicitly reads and follows one service while this hook is mounted. */
7
- export default function useServiceState(service: ServiceHandler): ServiceState | undefined;
7
+ export default function useServiceState(service: Service): ServiceState | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phreshos/react",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "React adapters for the Client SDK.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -47,13 +47,13 @@
47
47
  "prepack": "node --run test && node --run build"
48
48
  },
49
49
  "peerDependencies": {
50
- "@phreshos/client": "^0.1.23",
51
- "@phreshos/core": "^0.1.22",
50
+ "@phreshos/client": "^0.1.24",
51
+ "@phreshos/core": "^0.1.24",
52
52
  "react": "^19.2.0"
53
53
  },
54
54
  "devDependencies": {
55
- "@phreshos/client": "^0.1.23",
56
- "@phreshos/core": "^0.1.22",
55
+ "@phreshos/client": "^0.1.24",
56
+ "@phreshos/core": "^0.1.24",
57
57
  "@testing-library/react": "^16.3.0",
58
58
  "@types/react": "^19.2.18",
59
59
  "@types/react-dom": "^19.2.4",