lib.data-exchange-client
Shared controllers plus web and native UI surfaces for data interchange
@lssm-tech/lib.data-exchange-clientbun add @lssm-tech/lib.data-exchange-clientManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
Website: https://contractspec.io
Shared controllers plus web and native UI surfaces for mapping, preview, validation, and audit review.
What It Provides
- Shared data-exchange view models and stateful controllers.
- Web mapping studio components built on the existing web data-table stack.
- Native mapping studio components built on the existing mobile data-table stack.
Template Mapping UI State
The shared controller exposes template-aware rows so web and native surfaces can show recommended columns, matched source columns, confidence, formatting summaries, required gaps, and ignored source columns.
import { useDataExchangeController } from "@lssm-tech/lib.data-exchange-client";
function ImportReview({ preview }) {
const controller = useDataExchangeController({ preview });
return (
<ul>
{(controller.model.templateRows ?? []).map((row) => (
<li key={row.id}>
{row.label}: {row.sourceField || "Unmatched"} ->{" "}
{row.targetField}
{row.formatLabel ? ` (${row.formatLabel})` : ""}
</li>
))}
</ul>
);
}Users can remap columns, select aliases, update field formats, reset to the developer template, or accept inferred mappings through controller actions.
Relationships
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
6 declarations
@lssm-tech/lib.contracts-spec-coreworkspace:^
Read the package manual ↗@lssm-tech/lib.data-exchange-coreworkspace:^
Read the package manual ↗@lssm-tech/lib.design-systemworkspace:^
Read the package manual ↗@lssm-tech/lib.presentation-runtime-reactworkspace:^
Read the package manual ↗@lssm-tech/lib.translation-runtimeworkspace:^
Read the package manual ↗@lssm-tech/lib.ui-kit-webworkspace:^
Read the package manual ↗
Declared capabilities
Shared controllers plus web and native UI surfaces for data interchange
Scripts
publish:pkgbun publish --tolerate-republish --ignore-scripts --verbosepublish:pkg:canarybun publish:pkg --tag canarybuildcontractspec-bun-build buildbuild:bundlecontractspec-bun-build transpilebuild:typescontractspec-bun-build typesdevcontractspec-bun-build devcleanrimraf dist .turbolintbun lint:fixlint:fixnode ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .lint:checknode ../../../../scripts/biome.cjs check .prebuildcontractspec-bun-build prebuildtypechecktsgo --noEmit