@dtect/security-sdk-react 0.0.29 → 0.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dtect/security-sdk-react",
3
- "version": "0.0.29",
3
+ "version": "0.1.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -10,10 +10,8 @@
10
10
  "ts:check": "tsc --noEmit"
11
11
  },
12
12
  "dependencies": {
13
- "@dtect/security-sdk-js": "^0.0.30",
14
- "@tanstack/react-query": "^5.64.1",
15
- "react": "19.2.1",
16
- "react-dom": "19.2.1"
13
+ "@dtect/security-sdk-js": "^0.1.0",
14
+ "@tanstack/react-query": "^5.64.1"
17
15
  },
18
16
  "devDependencies": {
19
17
  "@eslint/js": "^9.17.0",
@@ -31,7 +29,7 @@
31
29
  "access": "public"
32
30
  },
33
31
  "peerDependencies": {
34
- "react": "^18.3.1",
35
- "react-dom": "^18.3.1"
32
+ "react": ">=18.0.0",
33
+ "react-dom": ">=18.0.0"
36
34
  }
37
35
  }
@@ -10,26 +10,22 @@ import {
10
10
 
11
11
  export interface ISecurityCheckContext {
12
12
  getSecurityResult: (
13
- props: ISecurityCheckInput
13
+ props: ISecurityCheckInput,
14
14
  ) => Promise<ISecurityResultResponse | Error>;
15
15
  getSecurityToken: (
16
- props: ISecurityCheckInput
16
+ props: ISecurityCheckInput,
17
17
  ) => Promise<ISecurityTokenResponse | Error>;
18
18
  getQualityQuestions: (
19
- props: IGetQualityQuestionsInput
19
+ props: IGetQualityQuestionsInput,
20
20
  ) => Promise<IQualityQuestionsResponse | Error>;
21
21
  isAIUsageDetected: (
22
- props: IIsAIUsageDetectedInput
22
+ props: IIsAIUsageDetectedInput,
23
23
  ) => Promise<ISecurityTokenResponse | ISecurityResultResponse | Error>;
24
24
  checkQualityQuestions: (
25
- props: ICheckQualityQuestionsInput
25
+ props: ICheckQualityQuestionsInput,
26
26
  ) => Promise<ISecurityTokenResponse | ISecurityResultResponse | Error>;
27
27
  }
28
28
 
29
29
  export interface ISecurityAppContext {
30
30
  isReady: boolean;
31
- isHcaptchaReady: boolean;
32
- isKeysReady: boolean;
33
- setIsHcaptchaReady: (isHcaptchaReady: boolean) => void;
34
- setIsKeysReady: (isKeysReady: boolean) => void;
35
31
  }
@@ -9,9 +9,6 @@ export interface ISecurityCheckInput {
9
9
 
10
10
  export interface ISecurityCheckVisitorDataInput {
11
11
  visitorData: {
12
- behaviorToken: string;
13
- automationToken: string;
14
- behaviorRequestId: string;
15
12
  browserLocale: string;
16
13
  entryLink: string;
17
14
  };
@@ -24,11 +24,6 @@ export interface ISecurityTokenResponse {
24
24
  token: string;
25
25
  }
26
26
 
27
- export interface IGetKeysResponse {
28
- behaviorKey: string;
29
- automationKey: string;
30
- }
31
-
32
27
  export interface IQualityQuestionsResponse {
33
28
  questions: any[];
34
29
  }