@contractspec/lib.presentation-runtime-react
v36.0.2
Published
React presentation runtime with workflow components
Maintainers
Readme
@contractspec/lib.presentation-runtime-react
Website: https://contractspec.io
React presentation runtime with workflow components.
What It Provides
- Layer: lib.
- Consumers: bundles, apps.
- Related ContractSpec packages include
@contractspec/lib.contracts-spec,@contractspec/lib.presentation-runtime-core,@contractspec/lib.ui-kit-web,@contractspec/tool.bun. - Related ContractSpec packages include
@contractspec/lib.contracts-spec,@contractspec/lib.presentation-runtime-core,@contractspec/lib.ui-kit-web,@contractspec/tool.bun.
Installation
npm install @contractspec/lib.presentation-runtime-react
or
bun add @contractspec/lib.presentation-runtime-react
Usage
Import the root entrypoint from @contractspec/lib.presentation-runtime-react, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/index.tsis the root public barrel and package entrypoint.src/nativewind-env.d.tsis part of the package's public or composition surface.src/table.types.tsis part of the package's public or composition surface.src/table.utils.test.tsis part of the package's public or composition surface.src/table.utils.tsis part of the package's public or composition surface.src/useContractTable.models.tsxis part of the package's public or composition surface.src/useContractTable.tsxis part of the package's public or composition surface.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./nativewind-env.dresolves through./src/nativewind-env.d.ts. - Export
./table.typesresolves through./src/table.types.ts. - Export
./table.utilsresolves through./src/table.utils.ts. - Export
./useContractTableresolves through./src/useContractTable.tsx. - Export
./useContractTable.modelsresolves through./src/useContractTable.models.tsx. - Export
./useDataViewTableresolves through./src/useDataViewTable.tsx. - Export
./useVisualizationModelresolves through./src/useVisualizationModel.ts. - Export
./useWorkflowresolves through./src/useWorkflow.ts. - Export
./WorkflowStepperresolves through./src/WorkflowStepper.tsx. - The package publishes 11 total export subpaths; keep docs aligned with
package.json.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run lint— bun run lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsc --noEmit -p tsconfig.jsonbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
- Add data visualization capabilities.
- Add table capabilities.
Notes
- Workflow component API is consumed by bundles — breaking changes require coordinated updates.
- Must stay compatible with presentation-runtime-core interface.
- Hook signatures (
useWorkflow) are public API; parameter changes are breaking.
