id_doc_kit 1.0.0
id_doc_kit: ^1.0.0 copied to clipboard
Indian ID validation helpers for KYC and onboarding (Aadhaar, PAN, GSTIN, DL, Voter ID, Passport + PIN/Phone/Email).
1.0.0 #
โจ New Features #
- Real-time Input Formatters: Introduced
IdInputFormattersfor all document types (Aadhaar, PAN, GSTIN, DL, Voter ID, Passport, PIN, Phone, Email). These provide intelligent live formatting (like1234 5678 9012for Aadhaar) with cursor position preservation. - Advanced Metadata Extraction:
- PAN validator now extracts
holderType(Individual, Company, Trust, etc.) andholderTypeCodeinto the metadata map. - GSTIN and Driving License now expose
stateNamederived from state codes.
- PAN validator now extracts
- Smart ID Auto-Detection: Enhanced
IdValidator.instance.validateAuto()to intelligently guess and validate the document type from a raw string. - GSTIN Checksum Validation: Added Luhn Mod 36 checksum verification for GSTIN, ensuring mathematically valid IDs.
๐ UI Enhancements #
- Optimized
IdTextField:- Automatically applies correct
TextInputFormatterbased on document type. - Integrated smart keyboard triggers:
numberfor Aadhaar/Phone/PIN, andemailAddressfor Email. - Intelligent
textCapitalizationfor alphanumeric IDs like PAN/GSTIN/DL. - Disabled autocorrect and suggestions for all ID fields to prevent OS keyboard interference.
- Automatically applies correct
- Improved
IdField: The builder pattern widget now fully supports auto-formatting and intelligent cursor offset preservation.
๐งช Improvements & Documentation #
- Robust Example App: Overhauled the example project with a modern UI, auto-detection demo, metadata visualization, and completion status tracking.
- CI/CD Improvements: Optimized GitHub Actions workflows for web deployment and automated publishing.
- Documentation: Comprehensive update to
README.mdincluding confidence score guides and metadata usage.
0.0.10 #
Added #
confidencescore (0.0 โ 1.0) for all validation results to indicate structural certaintymetafield inIdDocumentResultfor parsed and derived document details- Risk-aware Driving License validation with strict and fallback modes
- Structured metadata for Driving License (state, RTO, year, serial, legacy/fallback flags)
Improved #
- Consistent normalization across all validators
- Transparency in Driving License validation outcomes
- Enterprise-friendly validation workflows for KYC and onboarding workflows