@lssm/module.design-studio
v2.0.1
Published
Tenant-safe design pack selection, drafting, certification, and reusable studio surfaces.
Maintainers
Readme
@lssm/module.design-studio
Reusable, spec-first design selection and publishing workflows for ContractSpec applications.
The core package provides a canonical async DesignAuthoringStorePort service
created with createDesignStudioService({ store, clock, ids, certifier }) and
an InMemoryDesignAuthoringStore reference adapter. The original synchronous
service remains available through createInMemoryDesignStudioService for
compatibility. Both paths preserve strict
tenant scoping, private user-owned drafts, optimistic revisions, safe patches,
permission-gated certification, immutable publications, unpublication receipts,
and deterministic fallback metadata. Catalog discovery supports industry and
style filters through a contract adapter.
Presentation exports provide matching web and React Native faceted gallery, picker, structured section controls, editor, diagnostics, responsive preview, history/diff, and publish controls built from design-system primitives. Consumers own persistence adapters, routing, and application-specific previews. The reference API application supplies the production PostgreSQL adapter and authenticated route composition; the reference web and Expo applications mount the paired Studio surfaces against the real authenticated lifecycle.
Commands
bun run testbun run typecheckbun run lint:checkbun run build
