Changelog
All notable changes to @middag-io/react will be documented here.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.1.0] - 2026-05-01
Added
- Contract-driven page rendering system (
ContractPage,PageContract) - Shell registry with 2 built-in shells:
product,admin - Layout registry with 6 templates:
stack,split,dashboard,master-detail,wizard,canvas - Block registry with 16 block types across 4 categories:
- Data Display:
dense_table,detail_panel,card_grid,link_list,status_strip,activity_timeline - Forms:
form_panel,form_builder,sentence_builder,condition_tree - Content:
empty_state,markdown_panel,tabbed_panel,action_grid - Visualization:
metric_card,flow_editor
- Data Display:
- Provider system:
I18nProvider,AuthProvider,FlashProvider,ScopeProvider,ProgressProvider - Theme system with three-tier resolution (manual > host > OS), dark mode, and RTL support
- Navigation system with tree payload, drilldown, collapsible groups, and badges
- Host adapter support for Moodle (Boost) and WordPress (WP Admin)
registerDefaults()for one-call setup of all built-in componentsregisterShell(),registerLayout(),registerBlock()for custom extensions- Full TypeScript type exports for all contracts and data shapes
- ESM library build via Vite
- Mock application at middag-react-mock.pages.dev