@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.
- package/build/idkit-js.js +22 -22
- package/build/index.cjs +2 -2
- package/build/index.cjs.map +3 -3
- package/build/index.css +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +3 -3
- package/build/jest.config.d.ts +21 -0
- package/build/jest.setup.d.ts +1 -0
- package/build/src/components/IDKitWidget/States/ErrorState.d.ts +1 -2
- package/build/src/components/IDKitWidget/States/PrivacyState.d.ts +1 -0
- package/build/src/components/IDKitWidget/States/SuccessState.d.ts +1 -0
- package/build/src/components/IDKitWidget/States/WorldIDState.d.ts +1 -0
- package/build/src/components/Icons/LoadingIcon.d.ts +1 -0
- package/build/src/components/Icons/QuestionMarkIcon.d.ts +1 -0
- package/build/src/types/app.d.ts +7 -0
- package/build/src/types/config.d.ts +2 -1
- package/build/src/types/index.d.ts +2 -5
- package/build/tests/lib/hashing.test.d.ts +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -7
|
@@ -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';
|
package/build/src/types/app.d.ts
CHANGED
|
@@ -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,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:
|
|
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 {};
|