eis-ui-render 0.33.0 → 0.34.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/README.md +33 -0
- package/dist/index.js +1 -1
- package/dist/index.js.LICENSE.txt +0 -36
- package/dist/index.js.map +1 -1
- package/dist/static/all.css +1 -1
- package/dist/static/all.css.map +1 -1
- package/dist/static/font.css +2 -2
- package/package.json +12 -32
- package/static/all.css +1 -1
- package/static/font.css +2 -2
- package/static/fonts/icons/fonts/iconsOpenL.eot +0 -0
- package/static/fonts/icons/fonts/iconsOpenL.svg +95 -0
- package/static/fonts/icons/fonts/iconsOpenL.ttf +0 -0
- package/static/fonts/icons/fonts/iconsOpenL.woff +0 -0
- /package/dist/static/fonts/{iconsOpenL.eot → icons/fonts/iconsOpenL.eot} +0 -0
- /package/dist/static/fonts/{iconsOpenL.svg → icons/fonts/iconsOpenL.svg} +0 -0
- /package/dist/static/fonts/{iconsOpenL.ttf → icons/fonts/iconsOpenL.ttf} +0 -0
- /package/dist/static/fonts/{iconsOpenL.woff → icons/fonts/iconsOpenL.woff} +0 -0
package/README.md
CHANGED
|
@@ -5,6 +5,39 @@ Check the [docs](https://eisgroup.github.io/ui-render/configuration) folder to g
|
|
|
5
5
|
|
|
6
6
|
https://eisgroup.github.io/ui-render/
|
|
7
7
|
|
|
8
|
+
## Installation (consumer)
|
|
9
|
+
|
|
10
|
+
`eis-ui-render` declares the following **peer dependencies**. The host application must install
|
|
11
|
+
them explicitly — they are not bundled. Versions matter: keeping a single shared instance of
|
|
12
|
+
React and Moment in the application is required for the library to work correctly.
|
|
13
|
+
|
|
14
|
+
| Package | Required version | Why it must be a peer |
|
|
15
|
+
|---|---|---|
|
|
16
|
+
| `react` | `^16.14.0` | A second copy of React in the tree triggers `Invalid hook call` and breaks Context (forms, providers). pnpm with strict node_modules will not deduplicate copies across non-overlapping ranges. |
|
|
17
|
+
| `react-dom` | `^16.14.0` | Must come from the same install as `react` for the renderer pair to match. |
|
|
18
|
+
| `moment` | `~2.29.4` | The library renders dates and accepts `moment` instances on its API. If the application also uses Moment with a different copy, `value instanceof moment` checks fail (silent UI bugs in date pickers). |
|
|
19
|
+
|
|
20
|
+
Install (npm):
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npm install eis-ui-render react@^16.14.0 react-dom@^16.14.0 moment@~2.29.4
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Install (pnpm) — note that with `auto-install-peers=false` (the strict default in some setups)
|
|
27
|
+
peer dependencies are **not installed automatically**, so they must be listed explicitly:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
pnpm add eis-ui-render react@^16.14.0 react-dom@^16.14.0 moment@~2.29.4
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
If the host project relies on transitive copies of `react`/`react-dom`/`moment` from another
|
|
34
|
+
package instead of declaring them directly, pnpm in isolated mode will not resolve our peer
|
|
35
|
+
through them — the application must declare these three packages itself.
|
|
36
|
+
|
|
37
|
+
Other libraries previously listed as peer dependencies (`final-form`, `final-form-arrays`,
|
|
38
|
+
`react-final-form`, `react-final-form-arrays`, `prop-types`) are now bundled as regular
|
|
39
|
+
dependencies of `eis-ui-render`, so the host project does not need to install them.
|
|
40
|
+
|
|
8
41
|
## Development Installation
|
|
9
42
|
|
|
10
43
|
1. Install [Node.js](https://nodejs.org/), if you haven't already (version v22).
|