rechtspilot-ui 1.1.26 → 1.1.27
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 +9 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Rechtspilot UI Library
|
|
2
2
|
|
|
3
3
|
A React component library for building user interfaces primarily for the Rechtspilot platform. This library provides reusable UI components that follow a consistent design system.
|
|
4
4
|
|
|
@@ -70,23 +70,18 @@ pnpm install
|
|
|
70
70
|
pnpm sb
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
-
### Use UI Library
|
|
73
|
+
### Use UI Library Locally
|
|
74
74
|
|
|
75
|
-
|
|
75
|
+
You can link the library locally to test changes in `rechtspilot-chat-frontend` with instant HMR — no builds or npm publishes needed.
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
pnpm
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
#### 2. Install local library folder on frontend project
|
|
84
|
-
|
|
85
|
-
```
|
|
86
|
-
pnpm add 'path/to/local/rechtspilot-ui-library'
|
|
77
|
+
```bash
|
|
78
|
+
# In rechtspilot-chat-frontend
|
|
79
|
+
pnpm link:ui # enable (assumes ../rechtspilot-ui-library exists)
|
|
80
|
+
pnpm dev # start dev server — edits here reflect instantly
|
|
81
|
+
pnpm unlink:ui # revert to npm package when done
|
|
87
82
|
```
|
|
88
83
|
|
|
89
|
-
|
|
84
|
+
A pre-commit hook in `rechtspilot-chat-frontend` blocks commits while linking is active. See [`docs/LOCAL_UI_DEVELOPMENT.md`](https://github.com/rechtspilot/rechtspilot-chat-frontend/blob/main/docs/LOCAL_UI_DEVELOPMENT.md) in that repo for details.
|
|
90
85
|
|
|
91
86
|
## Implementing components
|
|
92
87
|
|