This repository contains the Docusaurus documentation site for react-form-wizard-component.
Version transition:
- Previous:
0.2.9 - Current:
1.0.0
- Package cleanup and distribution improvements (
package.jsonexports, side effects, keywords, circular dependency removal). - TypeScript and ESLint cleanup (removed
@ts-ignore, fixed hook-order/deps issues, improved type safety). - Performance updates (
React.memo,useMemo, anduseCallbackin core components). - Accessibility and UX improvements (ARIA roles/attributes, keyboard navigation with arrows/Home/End, better focus behavior, screen-reader descriptions).
- Mobile/responsive improvements (touch support, swipe navigation, reduced-motion/high-contrast friendly styles).
- Test infrastructure added/expanded with Jest + React Testing Library.
- Added schema-first runtime with compatibility bridge:
- Supports both children API and schema API.
- If both are provided,
schematakes precedence.
- Added new schema type contracts:
WizardDataWizardConditionContextWizardValidationContextWizardConditionWizardValidationWizardStepSchemaFormWizardSchema
- Extended API contracts:
FormWizardPropsnow supports schema/data patterns.FormWizardMethodsnow includes data methods and step-by-id navigation.
- Updated entry exports to include schema/type helpers and
TabContent. - Added schema-based examples, conditional step patterns, validation callbacks, and migration guidance in docs.
Core checks from the package update are passing:
npm run lintnpm testnpm run build(vite build && tsc)
Note: a non-blocking bundler warning about mixed named/default export style may still appear in FormWizard.tsx, but build output remains successful.
- Existing children-based API remains supported.
- New schema API is available through the
schemaprop. onCompletesupports an optional wizard data payload.- Schema and helper types are exported from package entry.
- If both
schemaandchildrenare passed,schemais used.
This website is built with Docusaurus 2, a modern static website generator.
yarnyarn startStarts a local development server and opens the docs site in your browser. Most changes are hot-reloaded.
yarn buildBuilds static content into the build directory.
Using SSH:
USE_SSH=true yarn deployWithout SSH:
GIT_USER=<your-github-username> yarn deployIf hosted on GitHub Pages, this builds and publishes to the gh-pages branch.