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.
Files changed (2) hide show
  1. package/README.md +9 -14
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Rechstpilot UI Library
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 locally
73
+ ### Use UI Library Locally
74
74
 
75
- It is possible to use the locally running library in the frontend poject to test the implementation before releasing
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
- #### 1. Build the library
78
-
79
- ```
80
- pnpm build
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
- To see new library changes on frontend just run `pnpm build` again
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rechtspilot-ui",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "type": "module",
5
5
  "description": "Rechtspilot UI Library",
6
6
  "main": "dist/index.cjs",