@entifix/react-integration 0.1.0 → 0.1.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 -3
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
1
|
# @entifix/react-integration
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Hooks that connect entities to data. It puts TanStack Query and TanStack Form over the entity adapters from `@entifix/business`, so a record, a page of records or a save is one hook — and the adapter behind it, REST or anything else, is supplied once through `createAdaptersContext`.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
It also carries the draft model a form edits, schema-based validation, link resolution, wizard state, and reactive invalidation when a write elsewhere settles.
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @entifix/react-integration @tanstack/react-form @tanstack/react-query effect react
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Entry points
|
|
14
|
+
|
|
15
|
+
| Import | What it holds |
|
|
16
|
+
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
17
|
+
| `@entifix/react-integration` | `EntifixQueryProvider`, `useEntityRecord`, `useEntityForm`, `useEntityMutation`, `useWizard`, `useReactiveInvalidation`, `useTransactionSettlement` |
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
Tier 3 (ui) of entifix — a package depends only on its own tier or below. See [the tiers](https://github.com/r10c-technologies/entifix#the-tiers-and-what-you-are-allowed-to-install). MIT licensed.
|
package/package.json
CHANGED
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
"version": "0.1.
|
|
27
|
+
"version": "0.1.1",
|
|
28
|
+
"description": "React hooks that bind entities to data: TanStack Query and Form over the entity adapters, drafts, mutations and live invalidation.",
|
|
28
29
|
"license": "MIT",
|
|
29
30
|
"repository": {
|
|
30
31
|
"type": "git",
|
|
@@ -53,16 +54,16 @@
|
|
|
53
54
|
"LICENSE"
|
|
54
55
|
],
|
|
55
56
|
"dependencies": {
|
|
56
|
-
"@entifix/transactions": "0.1.
|
|
57
|
-
"@entifix/
|
|
58
|
-
"@entifix/
|
|
57
|
+
"@entifix/transactions": "0.1.1",
|
|
58
|
+
"@entifix/business": "0.1.1",
|
|
59
|
+
"@entifix/core": "0.1.1"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@tanstack/react-form": "1.33.5",
|
|
62
63
|
"@tanstack/react-query": "^5.101.4",
|
|
63
64
|
"effect": "3.22.1",
|
|
64
65
|
"react": "19.2.8",
|
|
65
|
-
"@entifix/testing-unit": "0.1.
|
|
66
|
+
"@entifix/testing-unit": "0.1.1"
|
|
66
67
|
},
|
|
67
68
|
"peerDependencies": {
|
|
68
69
|
"@tanstack/react-form": ">=1.33 <2",
|