proje-react-panel 1.11.0-beta.0 → 1.11.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/CHANGELOG.md +38 -0
- package/dist/__tests__/components/list/LinkCell.test.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +2 -2
- package/src/__tests__/components/list/LinkCell.test.tsx +70 -0
- package/src/api/CrudApi.ts +2 -2
- package/src/components/list/cells/LinkCell.tsx +21 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,44 @@
|
|
|
2
2
|
|
|
3
3
|
This file starts at 1.11.0; earlier releases are only in the git history.
|
|
4
4
|
|
|
5
|
+
## 1.11.1
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- **Icons keep their `viewBox`, so consumer CSS can resize them.** SVGR was running SVGO with its
|
|
10
|
+
default configuration, whose `removeViewBox` plugin drops a `viewBox` that is redundant with
|
|
11
|
+
`width`/`height`. Only `check.svg` and `cross.svg` matched that condition (`0 0 24 24` with
|
|
12
|
+
`width=24`); every other icon carries `width=800` and was unaffected. Without a `viewBox` an SVG
|
|
13
|
+
cannot scale: a consumer sizing `.icon-true` to 16px got the top-left 16 units of a 24-unit
|
|
14
|
+
drawing — the tick in a boolean cell was cropped away rather than shrunk. `removeViewBox` is now
|
|
15
|
+
explicitly disabled in `rollup.config.mjs`. Consumers carrying a dist patch that injects the
|
|
16
|
+
attribute can remove it.
|
|
17
|
+
- `prefixIds` is passed explicitly alongside it, because supplying `svgoConfig` replaces SVGR's
|
|
18
|
+
default plugin list wholesale — losing it would let ids and class names collide between icons
|
|
19
|
+
inlined into the same bundle.
|
|
20
|
+
|
|
21
|
+
## 1.11.0
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- **`@LinkCell({ path: '/users/:id' })` now fills its path parameters from the row.** The path was
|
|
26
|
+
handed to `<Link to>` verbatim, so every open/edit cell rendered the literal `/users/:id` and
|
|
27
|
+
404'd on click — a link that looks right until it is used. Every `:param` in `path` is now
|
|
28
|
+
replaced with the row's value of that name. A parameter the row has no value for is left in
|
|
29
|
+
place rather than dropped, so a missing field stays visible instead of quietly producing
|
|
30
|
+
`/users/undefined`. Consumers carrying a local patch for this can remove it.
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- `src/__tests__/components/list/LinkCell.test.tsx` pins the substitution: one parameter, several
|
|
35
|
+
parameters, an unmatched parameter, and a path with none.
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- **The `react-router` peer range is now `^7.3.0`** instead of the exact `7.3.0` pin. Any 7.x from
|
|
40
|
+
7.3.0 up satisfies it, so a consumer upgrading the router for its own reasons (e.g. a security
|
|
41
|
+
advisory) no longer gets a permanent peer warning.
|
|
42
|
+
|
|
5
43
|
## 1.11.0-beta.0
|
|
6
44
|
|
|
7
45
|
### Changed — please read before upgrading
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'reflect-metadata';
|