@uniflowed/ui 0.0.0-alpha.15 → 0.0.0-alpha.17

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/field.js +16 -0
  2. package/package.json +4 -4
package/field.js CHANGED
@@ -108,6 +108,22 @@ import { withProps } from "./internal/merge-props.js";
108
108
  * `onBlur` and the constraint attributes a progressive form emits — spread onto
109
109
  * whatever element `Field.Control` renders, underneath the attributes the field
110
110
  * computes.
111
+ *
112
+ * # It is declared here and produced there
113
+ *
114
+ * `@uniflowed/form`'s `useFieldSource` builds one of these, so this type is the
115
+ * seam between the two packages — and it lives on this side only because the
116
+ * dependency can only run this way today: this package is on npm and that one
117
+ * is not, and `tools/release/publishable.sh` refuses a published package that
118
+ * depends on an unpublished one.
119
+ *
120
+ * That is backwards, and ubugeeei-prod/uf#614 says so. It stands because
121
+ * declaring the type twice trades a documented edge for silent drift — a
122
+ * `Field.Root` accepting a shape `useFieldSource` no longer produces would
123
+ * type-check on both sides and fail only where they meet — and because the
124
+ * import is type-only, so no project installing `@uniflowed/form` loads,
125
+ * bundles or runs any of this package. #210 is the trigger: once
126
+ * `@uniflowed/form` publishes, this moves there and `@uniflowed/ui` imports it.
111
127
  */
112
128
  export type FieldSource = {|
113
129
  readonly invalid: boolean,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniflowed/ui",
3
- "version": "0.0.0-alpha.15",
3
+ "version": "0.0.0-alpha.17",
4
4
  "description": "Headless, accessible React components whose composition Flow checks, part of the Unified Toolchain for Flow.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -52,9 +52,9 @@
52
52
  "internal"
53
53
  ],
54
54
  "dependencies": {
55
- "@uniflowed/core": "0.0.0-alpha.15",
56
- "@uniflowed/hooks": "0.0.0-alpha.15",
57
- "@uniflowed/react": "0.0.0-alpha.15"
55
+ "@uniflowed/core": "0.0.0-alpha.17",
56
+ "@uniflowed/hooks": "0.0.0-alpha.17",
57
+ "@uniflowed/react": "0.0.0-alpha.17"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "react": ">=19"