@worldcoin/idkit 0.4.5 → 0.4.7

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.
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ clearMocks: boolean;
3
+ moduleDirectories: string[];
4
+ moduleFileExtensions: string[];
5
+ moduleNameMapper: {
6
+ '^@/(.*)$': string;
7
+ };
8
+ roots: string[];
9
+ setupFilesAfterEnv: string[];
10
+ testEnvironment: string;
11
+ testPathIgnorePatterns: string[];
12
+ transform: {
13
+ '.(js|jsx|ts|tsx)$': (string | {
14
+ sourcemap: boolean;
15
+ })[];
16
+ };
17
+ globals: {
18
+ IDKitVersion: string;
19
+ };
20
+ };
21
+ export default _default;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -1,4 +1,3 @@
1
- import { ErrorCodes } from '../../../types';
2
- export declare const ERROR_TITLES: Record<ErrorCodes, string>;
1
+ /// <reference types="react" />
3
2
  declare const ErrorState: () => JSX.Element;
4
3
  export default ErrorState;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const PrivacyState: () => JSX.Element;
2
3
  export default PrivacyState;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SuccessState: () => JSX.Element;
2
3
  export default SuccessState;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const WorldIDState: () => JSX.Element;
2
3
  export default WorldIDState;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const LoadingIcon: ({ className }: {
2
3
  className?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  declare const QuestionMarkIcon: ({ className }: {
2
3
  className?: string | undefined;
3
4
  }) => JSX.Element;
@@ -1,8 +1,15 @@
1
1
  export declare enum AppErrorCodes {
2
2
  ConnectionFailed = "connection_failed",
3
3
  VerificationRejected = "verification_rejected",
4
+ MaxVerificationsReached = "max_verifications_reached",
4
5
  AlreadySigned = "already_signed",
6
+ CredentialUnavailable = "credential_unavailable",
7
+ MalformedRequest = "malformed_request",
8
+ InvalidNetwork = "invalid_network",
9
+ InclusionProofFailed = "inclusion_proof_failed",
10
+ InclusionProofPending = "inclusion_proof_pending",
5
11
  UnexpectedResponse = "unexpected_response",
12
+ FailedByHostApp = "failed_by_host_app",
6
13
  GenericError = "generic_error"
7
14
  }
8
15
  export declare enum VerificationState {
@@ -1,4 +1,5 @@
1
- import type { CallbackFn, AbiEncodedValue, CredentialType } from '.';
1
+ /// <reference types="react" />
2
+ import type { AbiEncodedValue, CallbackFn, CredentialType } from '.';
2
3
  export declare enum ConfigSource {
3
4
  HOOK = "hook",
4
5
  PROPS = "props",
@@ -1,3 +1,4 @@
1
+ import type { AppErrorCodes } from './app';
1
2
  declare const brand: unique symbol;
2
3
  type Brand<T, TBrand extends string> = T & {
3
4
  [brand]: TBrand;
@@ -29,11 +30,7 @@ export interface ExpectedErrorResponse {
29
30
  stack: string;
30
31
  }
31
32
  export interface IErrorState {
32
- code: ErrorCodes;
33
+ code: AppErrorCodes;
33
34
  message?: string;
34
35
  }
35
- export declare enum ErrorCodes {
36
- GENERIC_ERROR = "GENERIC_ERROR",
37
- REJECTED_BY_HOST_APP = "REJECTED_BY_HOST_APP"
38
- }
39
36
  export {};
@@ -0,0 +1 @@
1
+ export {};