@instructure/platform-rubrics
v2.0.0
Published
Rubrics UI shared between Canvas LMS and Foundation.
Maintainers
Keywords
Readme
@instructure/platform-rubrics
Rubrics UI shared between Canvas LMS and Foundation.
Shared business logic (hooks, queries, types) lives in src/_internal/ and is consumed by both src/canvas/ and src/foundation/. Before you add code to src/_internal/ or copy logic into a flavour, read ADR 0001. It sets the boundary rule, the admission test for src/_internal/, and what a flavour may override.
Entry points
| Import path | What it is |
|---|---|
| @instructure/platform-rubrics | Shared types, hooks, and other host-agnostic exports |
| @instructure/platform-rubrics/canvas | Canvas-flavored components |
| @instructure/platform-rubrics/foundation | Foundation-flavored components |
Never import from src/_internal/ outside this package — it is not part of the published surface.
Splitting later
If canvas and foundation rubrics diverge (different InstUI major, independent release cadence, separate ownership), the internal layout mirrors what a package split would look like: _internal/ → platform-rubrics-core, canvas/ → platform-rubrics, foundation/ → platform-foundation-rubrics. Keep flavor-specific imports going through their own subpath so the split stays mechanical.
