@pathmx/react 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/README.md +17 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,22 +1,32 @@
1
1
  # `@pathmx/react`
2
2
 
3
- React bindings and shared UI primitives for PathMX applications.
3
+ React bindings and shared UI primitives for PathMX applications. Player and
4
+ Auth install this package automatically.
5
+
6
+ ## Install
7
+
8
+ For a custom React integration:
4
9
 
5
10
  ```sh
6
- pathmx plugins add react
11
+ bun run pmx plugins add react
7
12
  ```
8
13
 
9
- Application integrations import the framework bindings from the package root:
14
+ Use the package root for PathMX context and Action hooks:
10
15
 
11
16
  ```tsx
12
- import { PathMXProvider, useActions, useSource } from "@pathmx/react"
17
+ import {
18
+ PathMXProvider,
19
+ useAction,
20
+ useActions,
21
+ useRelations,
22
+ useSource,
23
+ } from "@pathmx/react"
13
24
  ```
14
25
 
15
- Reusable accessible controls are available from the explicit UI subpath:
26
+ Reusable accessible controls are available from the explicit UI entrypoint:
16
27
 
17
28
  ```tsx
18
29
  import { ActionButton, Button } from "@pathmx/react/ui"
19
30
  ```
20
31
 
21
- This package follows the PathMX CLI release channel and currently requires
22
- React 19 or newer.
32
+ This package requires React 19 or newer.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pathmx/react",
3
3
  "description": "React bindings and UI primitives for PathMX applications.",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {
7
7
  "type": "git",