# Quadrata Onboarding Client

[Quadrata](https://quadrata.com) is a portable, privacy-preserving Identity solution for Web3. 
QuadClient package allows any Web3 companies to onboard their business customers.

## Installation
1. Install QuadrataKyb: `yarn add @quadrata/kyb-react`
2. Import CSS into your project: `import  '@quadrata/core-react/lib/cjs/quadrata-ui.min.css'`

For a complete examples and installation instructions, visit the [Quadrata Business Passport Onboarding](https://docs.quadrata.com/integration/how-to-integrate/onboard-users/business-passport-onboarding) documentation.

## ChangeLog [3.1.0] - 2024-08-08:

### Added
- Support for Privacy Consent Authorization
- `onConsentGranted` callback to notify when user has granted consent

### Changed
- Application flow to verify authoritative email address on repeat attempts
- Controlling persons page requires at least one entry

## ChangeLog [3.0.1] - 2024-07-17:

### Changed
- `@tanstack/react-query` upgraded to `^5.51.3`

## ChangeLog [3.0.0] - 2024-06-05:

### Added
- `walletAddresses` to `onApplicationEnd` callback

### Changed
- Changed HTTPS check to require [Secure Context](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts)
- Upgraded `react-query` from v3 to `@tanstack/react-query` v5
- Optimized build

### Fixed
- Fixed issues in application flow
- Performance improvements

## ChangeLog [2.5.2] - 2024-01-19:

## Fixed
- Removed text display condition for Terms of Service completion

## ChangeLog [2.5.1] - 2024-01-17:

## Changed
- Updated core-react dependency

## ChangeLog [2.5.0] - 2024-01-17:

### Added
- Dark scrollbar styles
- isVisible hook for Terms and Conditions 'scroll to bottom' feature

### Changed
- Updated validate wallet addresses error handling to handle address letter casing discrepancies

### Removed
- isScrollComplete hook for Terms and Conditions 'scroll to bottom' feature

## ChangeLog [2.4.1] - 2023-12-19:

### Added
- `isValidName` validator added to `Legal name`

## ChangeLog [2.3.0] - 2023-11-28:

### Changed
- Date of Formation improved to use the `CustomDateSelect` component

## ChangeLog [2.2.0] - 2023-11-10:

### Added
- Email verification feature

## ChangeLog [2.1.1] - 2023-11-1:

### Added
- Added onApplicationEnd callback to notify when application has ended due to error, success, completion

## ChangeLog [2.0.9] - 2023-10-17:

### Changed
- Migrated to ethers v6
- Implemented core Spinner in replace of fortawesome
### Removed
- dependencies
    - luxon
    - jwt-decode
    - fortawesome

## ChangeLog [2.0.0] - 2023-10-03:
### Added
- Added client side form validations

### Fixed
- Style issues for responsive sizing
- Email verification link types

### Changed
- Updated onboarding flow for faster, more efficient business onboarding
- Updated language for more efficient passport onboarding
- Updated documents upload requirements
- Refactored codebase for more efficient importing
- Updated Terms and Conditions
- Updated dependencies: @quadrata/core, ethers, web3-validator

### Removed
