Conversation
…isual feedback. Updated documentation and examples to demonstrate the new validation functionality. Includes new types and properties in the code to support custom validations at each step of the tour.
|
@enszrlu Can you please look at this PR. It would add a lot to the repo. |
|
@TexLuciano @juanco-itmu text for the contribution. Great idea! Also passing down validation functions between server and client components will need testing. I have added an alternative to documentation on how you can run validation with current library. I will come back to this later. Ps PR has some unnecessary diffs and Portuguese text on different places. |
🎯 Summary
Adds a robust validation system for steps, allowing developers to define custom validations before allowing progression in onboarding tours.
✨ Features Added
�� Validation System
booleanorPromise<boolean>🎨 User Interface
validationErrorandisValidatingprops available🚀 How to Use
Basic Example
Complex Validation Example
📁 Files Modified
Core
src/types/index.ts- AddedStepValidationinterfacesrc/NextStepReact.tsx- Implemented validation logicsrc/DefaultCard.tsx- Added error display supportDocumentation
README.md- Complete validation system guidesrc/docs/validation-feature.md- Detailed documentationsrc/examples/- Practical usage examplesBuild
package.json- Updated exports and scriptssrc/index.ts- Exported new types�� Common Use Cases
✅ Implemented Validations
�� Compatibility
📚 Documentation
src/docs/validation-feature.mdsrc/examples/simple-validation.tsxsrc/examples/validation-example.tsx🎯 Benefits
🔄 Breaking Changes
None - This is a purely optional addition that doesn't affect existing functionality.
🧪 Tested
Closes #[issue-number-if-any]
Related to: More robust and intuitive onboarding system