@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.
- package/README.md +17 -7
- 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
|
-
|
|
11
|
+
bun run pmx plugins add react
|
|
7
12
|
```
|
|
8
13
|
|
|
9
|
-
|
|
14
|
+
Use the package root for PathMX context and Action hooks:
|
|
10
15
|
|
|
11
16
|
```tsx
|
|
12
|
-
import {
|
|
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
|
|
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
|
|
22
|
-
React 19 or newer.
|
|
32
|
+
This package requires React 19 or newer.
|