@prosopo/procaptcha-wrapper 2.6.8 → 2.6.10
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/CHANGELOG.md +17 -0
- package/dist/index.d.ts +6 -68
- package/dist/index.d.ts.map +1 -0
- package/dist/render/renderFunction.d.ts +11 -0
- package/dist/render/renderFunction.d.ts.map +1 -0
- package/dist/render/renderer.d.ts +8 -0
- package/dist/render/renderer.d.ts.map +1 -0
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @prosopo/procaptcha-wrapper
|
|
2
2
|
|
|
3
|
+
## 2.6.10
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- eb71691: configure typecheck before bundle for vue packages
|
|
7
|
+
- eb71691: make typecheck script always recompile
|
|
8
|
+
- Updated dependencies [eb71691]
|
|
9
|
+
- Updated dependencies [eb71691]
|
|
10
|
+
- @prosopo/locale@3.1.1
|
|
11
|
+
- @prosopo/types@3.0.5
|
|
12
|
+
- @prosopo/util@3.0.4
|
|
13
|
+
- @prosopo/config@3.1.2
|
|
14
|
+
|
|
15
|
+
## 2.6.9
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- c8d2743: fix deps for tsconfig and pkg json (missing util)
|
|
19
|
+
|
|
3
20
|
## 2.6.8
|
|
4
21
|
### Patch Changes
|
|
5
22
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,68 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
readonly german: "de";
|
|
8
|
-
readonly greek: "el";
|
|
9
|
-
readonly english: "en";
|
|
10
|
-
readonly spanish: "es";
|
|
11
|
-
readonly finnish: "fi";
|
|
12
|
-
readonly french: "fr";
|
|
13
|
-
readonly hindi: "hi";
|
|
14
|
-
readonly hungarian: "hu";
|
|
15
|
-
readonly indonesian: "id";
|
|
16
|
-
readonly italian: "it";
|
|
17
|
-
readonly japanese: "ja";
|
|
18
|
-
readonly javanese: "jv";
|
|
19
|
-
readonly korean: "ko";
|
|
20
|
-
readonly malayalam: "ml";
|
|
21
|
-
readonly malay: "ms";
|
|
22
|
-
readonly dutch: "nl";
|
|
23
|
-
readonly norwegian: "no";
|
|
24
|
-
readonly polish: "pl";
|
|
25
|
-
readonly portugeseBrazil: "pt-BR";
|
|
26
|
-
readonly portuguese: "pt";
|
|
27
|
-
readonly romanian: "ro";
|
|
28
|
-
readonly russian: "ru";
|
|
29
|
-
readonly serbian: "sr";
|
|
30
|
-
readonly swedish: "sv";
|
|
31
|
-
readonly thai: "th";
|
|
32
|
-
readonly turkish: "tr";
|
|
33
|
-
readonly ukrainian: "uk";
|
|
34
|
-
readonly vietnamese: "vi";
|
|
35
|
-
readonly chinese: "zh-CN";
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export declare interface ProcaptchaRenderOptions {
|
|
39
|
-
siteKey: string;
|
|
40
|
-
theme?: "light" | "dark";
|
|
41
|
-
captchaType?: Features;
|
|
42
|
-
callback?: string | ((token: string) => void);
|
|
43
|
-
"challenge-valid-length"?: string;
|
|
44
|
-
"chalexpired-callback"?: string | (() => void);
|
|
45
|
-
"expired-callback"?: string | (() => void);
|
|
46
|
-
"open-callback"?: string | (() => void);
|
|
47
|
-
"close-callback"?: string | (() => void);
|
|
48
|
-
"error-callback"?: string | (() => void);
|
|
49
|
-
"failed-callback"?: string | (() => void);
|
|
50
|
-
"reset-callback"?: string | (() => void);
|
|
51
|
-
language?: (typeof ProcaptchaLanguages)[keyof typeof ProcaptchaLanguages];
|
|
52
|
-
size?: "invisible";
|
|
53
|
-
web3?: boolean;
|
|
54
|
-
userAccountAddress?: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export declare enum ProcaptchaType {
|
|
58
|
-
image = "image",
|
|
59
|
-
pow = "pow",
|
|
60
|
-
frictionless = "frictionless",
|
|
61
|
-
invisible = "invisible"
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
declare type RendererFunction = (element: HTMLElement, options: ProcaptchaRenderOptions) => Promise<void>;
|
|
65
|
-
|
|
66
|
-
export declare const renderProcaptcha: RendererFunction;
|
|
67
|
-
|
|
68
|
-
export { }
|
|
1
|
+
import type { Languages } from "@prosopo/locale";
|
|
2
|
+
import type { CaptchaType, ProcaptchaRenderOptions } from "@prosopo/types";
|
|
3
|
+
import type { RendererFunction } from "./render/renderFunction.js";
|
|
4
|
+
export declare const renderProcaptcha: RendererFunction;
|
|
5
|
+
export type { ProcaptchaRenderOptions, CaptchaType as ProcaptchaType, Languages as ProcaptchaLanguages, };
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAC3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,eAAO,MAAM,gBAAgB,EAAE,gBAK7B,CAAC;AAEH,YAAY,EACX,uBAAuB,EACvB,WAAW,IAAI,cAAc,EAC7B,SAAS,IAAI,mBAAmB,GAChC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ProcaptchaRenderOptions } from "@prosopo/types";
|
|
2
|
+
export type RendererFunction = (element: HTMLElement, options: ProcaptchaRenderOptions) => Promise<void>;
|
|
3
|
+
export declare const loadRenderFunction: (scriptUrl: string, scriptId: string) => Promise<RendererFunction>;
|
|
4
|
+
declare global {
|
|
5
|
+
interface Window {
|
|
6
|
+
procaptcha: {
|
|
7
|
+
render: RendererFunction;
|
|
8
|
+
} | undefined;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=renderFunction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderFunction.d.ts","sourceRoot":"","sources":["../../src/render/renderFunction.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG,CAC9B,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,uBAAuB,KAC5B,OAAO,CAAC,IAAI,CAAC,CAAC;AAEnB,eAAO,MAAM,kBAAkB,cACnB,MAAM,YACP,MAAM,KACd,OAAO,CAAC,gBAAgB,CAa1B,CAAC;AAmCF,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,UAAU,EACP;YACA,MAAM,EAAE,gBAAgB,CAAC;SACxB,GACD,SAAS,CAAC;KACb;CACD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type RendererFunction } from "./renderFunction.js";
|
|
2
|
+
interface RendererSettings {
|
|
3
|
+
scriptUrl: string;
|
|
4
|
+
scriptId: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const createRenderer: (settings: RendererSettings) => RendererFunction;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../src/render/renderer.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,gBAAgB,EAAsB,MAAM,qBAAqB,CAAC;AAEhF,UAAU,gBAAgB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,cAAc,aAChB,gBAAgB,KACxB,gBA0BF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/procaptcha-wrapper",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "20",
|
|
@@ -20,17 +20,18 @@
|
|
|
20
20
|
"build": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
|
|
21
21
|
"build:tsc": "tsc --build --verbose",
|
|
22
22
|
"build:cjs": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
|
|
23
|
-
"typecheck": "tsc --build --declaration --emitDeclarationOnly",
|
|
23
|
+
"typecheck": "tsc --build --declaration --emitDeclarationOnly --force",
|
|
24
24
|
"test": "echo no tests",
|
|
25
25
|
"bundle": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.config.ts --mode $NODE_ENV"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@prosopo/types": "3.0.
|
|
29
|
-
"@prosopo/
|
|
30
|
-
"@prosopo/
|
|
28
|
+
"@prosopo/types": "3.0.5",
|
|
29
|
+
"@prosopo/util": "3.0.4",
|
|
30
|
+
"@prosopo/config": "3.1.2",
|
|
31
|
+
"@prosopo/locale": "3.1.1"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@prosopo/procaptcha-integration-build-config": "1.1.
|
|
34
|
+
"@prosopo/procaptcha-integration-build-config": "1.1.2",
|
|
34
35
|
"del-cli": "6.0.0"
|
|
35
36
|
},
|
|
36
37
|
"author": "PROSOPO LIMITED <info@prosopo.io>",
|