@texaryn/react 0.2.2 → 0.2.4
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/CHANGELOG.md +14 -0
- package/README.md +4 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @texaryn/react
|
|
2
2
|
|
|
3
|
+
## 0.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [8b20b6e]
|
|
8
|
+
- @texaryn/core@0.5.0
|
|
9
|
+
|
|
10
|
+
## 0.2.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [ffae9f1]
|
|
15
|
+
- @texaryn/core@0.4.0
|
|
16
|
+
|
|
3
17
|
## 0.2.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -135,7 +135,7 @@ They translate semantic field state into DOM-facing props without moving form be
|
|
|
135
135
|
|
|
136
136
|
## Error display
|
|
137
137
|
|
|
138
|
-
`useField` returns `showErrors`, which is `true`
|
|
138
|
+
`useField` returns `showErrors`, which is `true` once a field is invalid and either touched or the form has been submitted at least once. Widgets use it to decide whether to render inline errors:
|
|
139
139
|
|
|
140
140
|
```tsx
|
|
141
141
|
import { FieldErrors } from '@texaryn/react'
|
|
@@ -173,7 +173,7 @@ All default widgets already render `FieldErrors` internally, so most application
|
|
|
173
173
|
</button>
|
|
174
174
|
```
|
|
175
175
|
|
|
176
|
-
`form.submission.status` moves through `idle`, `validating`, `submitting`, and `submitted`. An invalid validation result returns the status to `idle` and
|
|
176
|
+
`form.submission.status` moves through `idle`, `validating`, `submitting`, and `submitted`. An invalid validation result returns the status to `idle` and shows the errors on every invalid field, touched or not, without setting `form.submission.error`. `form.submission.attempts` counts the accepted Submit commands since the last Reset. The error is set only when the validator throws or rejects, or when `onSubmit` throws or rejects; the status returns to `idle` in those cases too:
|
|
177
177
|
|
|
178
178
|
```tsx
|
|
179
179
|
{form.submission.error != null && (
|
|
@@ -309,7 +309,8 @@ The schema adapter interprets data semantics. The core compiles and runs the for
|
|
|
309
309
|
- [`@texaryn/core`](../core/README.md), runtime and renderer contracts
|
|
310
310
|
- [`@texaryn/schema-json`](../schema-json/README.md), JSON Schema adapter
|
|
311
311
|
- [`@texaryn/react-bootstrap`](../react-bootstrap/README.md), Bootstrap 5 widget registry
|
|
312
|
-
- [`@texaryn/
|
|
312
|
+
- [`@texaryn/react-mui`](../react-mui/README.md), Material UI v9 widget registry
|
|
313
|
+
- [`@texaryn/playground`](../../apps/playground/README.md), repository playground application
|
|
313
314
|
|
|
314
315
|
See the [repository README](../../README.md) for the complete architecture.
|
|
315
316
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@texaryn/react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "React bindings, hooks, prop getters, and default widgets for Texaryn",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"CHANGELOG.md"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@texaryn/core": "^0.
|
|
47
|
+
"@texaryn/core": "^0.5.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"react": ">=18.0.0"
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"jsdom": "^25.0.0",
|
|
56
56
|
"react": "^19.0.0",
|
|
57
57
|
"react-dom": "^19.0.0",
|
|
58
|
-
"@texaryn/schema-json": "0.2.
|
|
58
|
+
"@texaryn/schema-json": "0.2.4"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsc --build"
|