nera-react
v0.3.1
Published
Shared React component/hook/store library for the Photoflow Nera portals (Angular-free stack: Next.js/React portals such as nera-sa-portal, nera-iam-portal). Ships presentation components (`src/lib/components/ui`), Zustand stores, and hooks. Consumers mus
Readme
nera-react
Shared React component/hook/store library for the Photoflow Nera portals (Angular-free
stack: Next.js/React portals such as nera-sa-portal, nera-iam-portal). Ships presentation
components (src/lib/components/ui), Zustand stores, and hooks. Consumers must supply
their own Tailwind config/CSS with the semantic token CSS variables the components expect
(e.g. --primary, --destructive, --secondary, --border, --ring, --success,
--warning) — this package does not ship its own Tailwind config or CSS.
Peer dependency ranges
react/react-dom support ^18.0.0 || ^19.0.0, and zustand supports ^4.0.0 || ^5.0.0
(see peerDependencies in package.json).
Testing against React 18 / React 19 locally
There is no CI matrix job for this yet (out of scope for now — the shared
npm-public-library.yml CI template doesn't support a matrix cheaply). Instead, verify
compatibility locally before releasing a version that touches component code:
pnpm test:react18 # installs react@18 + react-dom@18, then runs the test suite
pnpm test:react19 # installs react@19 + react-dom@19, then runs the test suiteBoth scripts mutate package.json/pnpm-lock.yaml (via pnpm add -D) as a side effect of
switching the installed React version. After running them, restore the repo's committed
devDependency versions with:
git checkout -- package.json pnpm-lock.yaml
pnpm install