@propellerads/kyc-form 4.1.7 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,35 +0,0 @@
1
- import { DOCUMENT_TYPES, PART_TYPES } from './document.types';
2
- export declare type UploaderLabels = {
3
- title?: string;
4
- description?: string;
5
- action?: string;
6
- oversizeError: string;
7
- };
8
- export declare type PartLabels = {
9
- title?: string;
10
- };
11
- export declare type PartsLabels = {
12
- [PART_TYPES.ID_FRONT]?: PartLabels;
13
- [PART_TYPES.ID_BACK]?: PartLabels;
14
- [PART_TYPES.UB]?: PartLabels;
15
- [PART_TYPES.CARD]?: PartLabels;
16
- [PART_TYPES.PAYMENT_SYSTEM_SCREEN]?: PartLabels;
17
- [PART_TYPES.ONLINE_BANKING_STATEMENT]?: PartLabels;
18
- [PART_TYPES.COMPANY_REGISTRATION_DOCUMENT]?: PartLabels;
19
- [PART_TYPES.SELFIE_WITH_ID_CARD]?: PartLabels;
20
- };
21
- export declare type DocumentLabels = {
22
- title: string;
23
- description?: string;
24
- parts?: PartsLabels;
25
- };
26
- export declare type DocumentsLabels = {
27
- [DOCUMENT_TYPES.ID]?: DocumentLabels;
28
- [DOCUMENT_TYPES.ID_EXTRA]?: DocumentLabels;
29
- [DOCUMENT_TYPES.UB]?: DocumentLabels;
30
- [DOCUMENT_TYPES.CARD]?: DocumentLabels;
31
- [DOCUMENT_TYPES.PAYMENT_SYSTEM_SCREEN]?: DocumentLabels;
32
- [DOCUMENT_TYPES.ONLINE_BANKING_STATEMENT]?: DocumentLabels;
33
- [DOCUMENT_TYPES.COMPANY_REGISTRATION_DOCUMENT]?: DocumentLabels;
34
- [DOCUMENT_TYPES.SELFIE_WITH_ID_CARD]?: DocumentLabels;
35
- };
package/dist/style.d.ts DELETED
@@ -1,5 +0,0 @@
1
- declare const StyledKYCForm: import("styled-components").StyledComponent<"div", any, {}, never>;
2
- declare const StyledKYCFormTitle: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- declare const StyledKYCFormDocuments: import("styled-components").StyledComponent<"div", any, {}, never>;
4
- declare const StyledKYCFormButton: import("styled-components").StyledComponent<"div", any, {}, never>;
5
- export { StyledKYCForm, StyledKYCFormTitle, StyledKYCFormDocuments, StyledKYCFormButton };
package/dist/types.d.ts DELETED
@@ -1,17 +0,0 @@
1
- import React, { ReactNode } from 'react';
2
- import { KYCDocument } from './document.types';
3
- import { DocumentsLabels, UploaderLabels } from './labels.types';
4
- export interface KYCFormProps {
5
- elementId: string;
6
- title: ReactNode;
7
- uploadButtonLabel: string;
8
- uploaderLabels: UploaderLabels;
9
- documentsLabels: DocumentsLabels;
10
- documents: KYCDocument[];
11
- isLoading?: boolean;
12
- errors?: Record<string, string>;
13
- validator: (documents: KYCDocument[]) => boolean;
14
- onUploadClick: (documents: KYCDocument[]) => void;
15
- }
16
- export default class KYCForm extends React.Component<KYCFormProps> {
17
- }
package/dist/utils.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { DOCUMENT_TYPES, KYCFile, KYCFileData } from './document.types';
2
- declare const isDocumentExtraPartAvailable: (documentType: DOCUMENT_TYPES) => boolean;
3
- declare const canAddExtraPart: (documentType: DOCUMENT_TYPES, parts: KYCFile[]) => boolean;
4
- declare const canRemoveExtraPart: (documentType: DOCUMENT_TYPES, parts: KYCFile[]) => boolean;
5
- declare const isPDF: (partData: KYCFileData) => boolean;
6
- declare const isHEIC: (partData: KYCFileData) => boolean;
7
- declare const isFileUniqueInDocument: (file: KYCFile, parts: KYCFile[]) => boolean;
8
- declare const getFileBase64: (file: File) => Promise<string>;
9
- export { canAddExtraPart, canRemoveExtraPart, getFileBase64, isDocumentExtraPartAvailable, isFileUniqueInDocument, isHEIC, isPDF, };