@techlabi/kycrazy-ui-kit 0.56.0 → 0.57.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.
@@ -3,7 +3,7 @@ import { documentIds } from './steps/DocumentSelectionStep';
3
3
  declare const CameraShotStep: ({ currentStep, onRetake, onConfirm, onBack, title, description, frameType, documentTypeId, }: {
4
4
  currentStep: KYCStep | KYBStep;
5
5
  onRetake: () => void;
6
- onConfirm: (file: File) => Promise<void>;
6
+ onConfirm: (file: File, onProgress: (percent: number) => void) => Promise<void>;
7
7
  onBack: () => void;
8
8
  title: string;
9
9
  description: string;
@@ -4,5 +4,6 @@ export interface UpdateSectionOptions {
4
4
  apiKey: string;
5
5
  id: string;
6
6
  flow: ComplianceFlow;
7
+ onProgress?: (percent: number) => void;
7
8
  }
8
- export declare const updateSection: (section: string, data: Record<string, any>, files: Record<string, File | File[] | null | undefined>, opts: UpdateSectionOptions) => Promise<boolean>;
9
+ export declare const updateSection: (section: string, data: Record<string, any>, files: Record<string, File | File[] | null | undefined>, opts: UpdateSectionOptions, signal?: AbortSignal) => Promise<boolean>;
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  interface ProcessingStepProps {
3
3
  onComplete: () => Promise<void> | void;
4
+ onError?: () => void;
4
5
  }
5
6
  declare const ProcessingStep: React.FC<ProcessingStepProps>;
6
7
  export default ProcessingStep;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "description": "A modern React component library for KYC",
5
5
  "author": "TechLabi",
6
- "version": "0.56.0",
6
+ "version": "0.57.0",
7
7
  "type": "module",
8
8
  "types": "dist/types/index.d.ts",
9
9
  "style": "dist/style.css",