@uni-design-system/uni-react 10.4.0 → 11.0.0
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 +20 -0
- package/README.md +8 -0
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @uni-design-system/uni-react
|
|
2
2
|
|
|
3
|
+
## 11.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`8fef84f`](https://github.com/uni-design-system/uni/commit/8fef84f25b92c3aea09ca1185304d54acae7e6b7) Thanks [@gaenglish](https://github.com/gaenglish)! - Require Angular 22. `@angular/common`, `@angular/core` and `@angular/forms` move from `^21.2.0` to `^22.0.0`, so 11.x tracks Angular 22 and 10.x remains the Angular 21 line — one major of this package per Angular major, as documented. The old range excluded v22 outright, so an app that had taken Angular 22 could not install this package without a peer override.
|
|
8
|
+
|
|
9
|
+
Two consequences of the framework's own changes:
|
|
10
|
+
|
|
11
|
+
**`touch` output on every form control.** Angular 22 marks a bound field touched through a dedicated `touch` output rather than through the `touched` model, which the `Field` directive now binds inward only. All sixteen controls that track touched state (input, textarea, checkbox, radio, toggle, select, combobox, multi-select, tag-input, calendar, date/date-time/time inputs, number/number-range inputs, quantity-stepper, slider) emit it wherever they already considered the user done with the control. Without it, `touched()` never flips and error display gated on it never appears.
|
|
12
|
+
|
|
13
|
+
**`min` / `max` typing.** The contract now types `min`/`max` as the control's own value type rather than as numbers. Where that still fits, the input was widened (`uni-slider`). Where it does not — a text control's native numeric attributes (`uni-input`), a range control's scalar bounds (`uni-number-range-input`), a tag limit (`uni-tag-input`) — the class member steps aside and the public binding name is preserved by an alias, so **templates are unchanged**. Only code reaching these through a `ViewChild` instance is affected: `min`/`max` are now `minAttr`/`maxAttr` on `uni-input`, `minValue`/`maxValue` on `uni-number-range-input`, and `max` is `maxLength` on `uni-tag-input`. `uni-number-range-input`'s protected `valueOf()` is renamed `partValue()`, since `valueOf` collides with `Object.valueOf`.
|
|
14
|
+
|
|
15
|
+
Angular 22 also makes `OnPush` the default change detection; every component here already set it explicitly.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [`0b1c528`](https://github.com/uni-design-system/uni/commit/0b1c52851188011717b9388298a4b3b3f734e9e5) Thanks [@gaenglish](https://github.com/gaenglish)! - Mark the React package experimental. It shares a version number with `@uni-design-system/uni-angular` because the packages release together as a fixed group, not because they are at parity — React implements roughly a sixth of the Angular library's components and carries a single spec file. The version was reading as a maturity signal it had not earned.
|
|
20
|
+
|
|
21
|
+
The package description and a README banner now say so; nothing about the code changes, and it stays published.
|
|
22
|
+
|
|
3
23
|
## 10.4.0
|
|
4
24
|
|
|
5
25
|
## 10.3.0
|
package/README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
> [!WARNING]
|
|
2
|
+
> **This package is experimental.** It shares a version number with
|
|
3
|
+
> `@uni-design-system/uni-angular` because the packages release together, **not
|
|
4
|
+
> because they are at parity** — React implements a small subset of the Angular
|
|
5
|
+
> library's components and carries minimal test coverage. Treat the version as
|
|
6
|
+
> a release marker, not a maturity signal. For production use today, prefer
|
|
7
|
+
> `@uni-design-system/uni-angular`.
|
|
8
|
+
|
|
1
9
|
<p align="center">
|
|
2
10
|
<a href="https://uni-design-system.github.io/uni/" target="_blank">
|
|
3
11
|
<img src="https://github.com/uni-design-system/uni-react/raw/v0.0.17/.github/uni-logo.png" alt="UNI Design System">
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uni-design-system/uni-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
|
+
"description": "EXPERIMENTAL — the React implementation of the Uni Design System. Version-matched to @uni-design-system/uni-angular but not at parity: a small subset of components, minimal tests. Not recommended for production.",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"repository": {
|
|
6
7
|
"type": "git",
|
|
@@ -47,10 +48,10 @@
|
|
|
47
48
|
"@chromatic-com/storybook": "^5.2.1",
|
|
48
49
|
"@emotion/css": "^11.0.0",
|
|
49
50
|
"@eslint/js": "^10.0.1",
|
|
50
|
-
"@storybook/addon-a11y": "^10.
|
|
51
|
-
"@storybook/addon-docs": "^10.
|
|
51
|
+
"@storybook/addon-a11y": "^10.6.0",
|
|
52
|
+
"@storybook/addon-docs": "^10.6.0",
|
|
52
53
|
"@storybook/addon-vitest": "^10.4.0",
|
|
53
|
-
"@storybook/react-vite": "^10.
|
|
54
|
+
"@storybook/react-vite": "^10.6.0",
|
|
54
55
|
"@types/react": "^18.2.0",
|
|
55
56
|
"@types/react-dom": "^18.2.0",
|
|
56
57
|
"@vitejs/plugin-react": "^4.2.0",
|
|
@@ -59,14 +60,14 @@
|
|
|
59
60
|
"csstype": "^3.2.3",
|
|
60
61
|
"eslint": "^10.7.0",
|
|
61
62
|
"playwright": "^1.59.1",
|
|
62
|
-
"storybook": "^10.
|
|
63
|
-
"typescript": "
|
|
63
|
+
"storybook": "^10.6.0",
|
|
64
|
+
"typescript": "~6.0.0",
|
|
64
65
|
"typescript-eslint": "^8.64.0",
|
|
65
66
|
"vite": "^7.0.0",
|
|
66
67
|
"vite-plugin-dts": "^4.5.4",
|
|
67
68
|
"vitest": "^4.1.5",
|
|
68
69
|
"@uni-design-system/tsconfig": "0.1.0",
|
|
69
|
-
"@uni-design-system/uni-core": "
|
|
70
|
+
"@uni-design-system/uni-core": "11.0.0"
|
|
70
71
|
},
|
|
71
72
|
"scripts": {
|
|
72
73
|
"dev": "vite build --watch",
|