@freedom-code-compliance/markup-panel
v0.3.0
Published
Shared DocumentMarkupPanel with domain-adapter contract for plan review and inspection markup workflows.
Downloads
616
Keywords
Readme
@freedom-code-compliance/markup-panel
Shared DocumentMarkupPanel with a MarkupDomainAdapter contract, for plan-review and inspection markup workflows in the Freedom Code Compliance ecosystem.
Built on top of @freedom-code-compliance/annotations.
Status
Pre-release (0.1.0-alpha.0). API may change before 0.1.0 ships. Use @freedom-code-compliance/markup-panel@alpha to opt in.
Usage
import { DocumentMarkupPanel, type MarkupDomainAdapter } from '@freedom-code-compliance/markup-panel';
const adapter: MarkupDomainAdapter = {
scopeId: 'plan-review-123',
useFiles: () => ({ data: files, isLoading: false, error: null }),
commentScopeFields: () => ({ plan_review_id: 'plan-review-123' }),
renderHeader: (ctx) => <div>Header</div>,
// optional slots...
};
<DocumentMarkupPanel
adapter={adapter}
supabase={supabase}
currentUser={user}
/>;Subpaths
@freedom-code-compliance/markup-panel/plan-review— plan-review-specific helpers (DISCIPLINE_PALETTE,disciplineLetter,planReviewAdapter).
Design
See docs/superpowers/specs/2026-04-23-inspection-media-markup-design.md in the fcc-vault repo.
