@texaryn/react 0.2.2 → 0.2.3

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @texaryn/react
2
2
 
3
+ ## 0.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ffae9f1]
8
+ - @texaryn/core@0.4.0
9
+
3
10
  ## 0.2.2
4
11
 
5
12
  ### 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` only once a field is both touched and invalid. Widgets use it to decide whether to render inline errors:
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 updates node errors without setting `form.submission.error`. 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:
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/demo`](../demo/README.md), repository demo application
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.2",
3
+ "version": "0.2.3",
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.3.0"
47
+ "@texaryn/core": "^0.4.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.2"
58
+ "@texaryn/schema-json": "0.2.3"
59
59
  },
60
60
  "scripts": {
61
61
  "build": "tsc --build"