@sensolus/snt-agent-kit
v0.1.1
Published
Sensolus agent-app kit: Snt* widgets, theme, colors, i18n framework. Locked shared code — import it, don't copy it.
Readme
@sensolus/snt-agent-kit
Locked shared code for Sensolus agent apps: Snt* widgets, theme CSS, SntColors,
i18n framework (LocaleProvider, useLocale, formatters) and common translation strings.
import { SntButton, SntTable, LocaleProvider, useLocale } from '@sensolus/snt-agent-kit'
import '@sensolus/snt-agent-kit/theme.css'Published built and minified, without sourcemaps — by design. Don't fork widgets:
use slots/render props (SntCard titleButton/children, SntTable column render, ...)
or open a PR here.
App-side contract
LocaleProviderfetches/api/loginInfo(override withloginInfoUrlprop).- App translations are merged via the
messagesprop:<LocaleProvider messages={{ en: {...}, nl: {...} }}>. The kit ships onlycommon.*andtable.*keys. SntMapgeocoding expects backend/api/geocodeand/api/reverse-geocodeendpoints.
