Commit 34bf9d8
committed
feat: Enhance PageRenderer with structured layouts and region support
- Refactored PageRenderer to support multiple page types (record, home, app, utility) with named regions (header, sidebar, main, footer, aside).
- Introduced RegionContent and RegionLayout components for better organization of page regions.
- Added FlatContent as a fallback for legacy body/children rendering.
- Implemented PageVariablesProvider to manage page-level state variables.
- Removed deprecated usePageVariables hook and added comprehensive tests for new variable management functionality.
- Updated component registration to avoid conflicts with existing layout registrations.1 parent 88b2edb commit 34bf9d8
6 files changed
Lines changed: 1172 additions & 122 deletions
File tree
- packages
- components/src
- __tests__
- renderers/layout
- layout/src
- react/src
- __tests__
- hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
| 181 | + | |
181 | 182 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
189 | 203 | | |
190 | 204 | | |
191 | 205 | | |
| |||
0 commit comments