@prosopo/procaptcha-bundle 0.2.32 → 0.2.33
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/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts +15 -0
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.d.ts.map +1 -0
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.js +147 -0
- package/.rollup.cache/home/runner/work/captcha/captcha/packages/procaptcha-bundle/dist/bundle/index.js.map +1 -0
- package/dist/bundle/ProcaptchaWidget-7987a1e9.js +36292 -0
- package/dist/bundle/index-bf6f6dd8.js +10551 -0
- package/dist/bundle/index.d.ts +15 -0
- package/dist/bundle/index.d.ts.map +1 -0
- package/dist/bundle/procaptcha.bundle.js +5 -0
- package/dist/cjs/index.cjs +5 -4
- package/package.json +5 -5
- package/stats.html +4842 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface ProcaptchaRenderOptions {
|
|
2
|
+
siteKey: string;
|
|
3
|
+
theme?: 'light' | 'dark';
|
|
4
|
+
callback?: string;
|
|
5
|
+
'challenge-valid-length'?: string;
|
|
6
|
+
'chalexpired-callback'?: string;
|
|
7
|
+
'expired-callback'?: string;
|
|
8
|
+
'open-callback'?: string;
|
|
9
|
+
'close-callback'?: string;
|
|
10
|
+
'error-callback'?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const render: (elementId: string, renderOptions: ProcaptchaRenderOptions) => void;
|
|
13
|
+
export default function ready(fn: () => void): void;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAyBA,UAAU,uBAAuB;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC5B;AA8ID,eAAO,MAAM,MAAM,cAAe,MAAM,iBAAiB,uBAAuB,SAW/E,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,EAAE,EAAE,MAAM,IAAI,QAQ3C"}
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -21,16 +21,17 @@ const extractParams = (name) => {
|
|
|
21
21
|
};
|
|
22
22
|
const getConfig = (siteKey) => {
|
|
23
23
|
if (!siteKey) {
|
|
24
|
-
siteKey = process.env.
|
|
24
|
+
siteKey = process.env.PROSOPO_SITE_KEY || "";
|
|
25
25
|
}
|
|
26
26
|
return types.ProcaptchaConfigSchema.parse({
|
|
27
|
-
defaultEnvironment: process.env.
|
|
28
|
-
defaultNetwork: process.env.
|
|
27
|
+
defaultEnvironment: process.env.PROSOPO_DEFAULT_ENVIRONMENT ? types.EnvironmentTypesSchema.parse(process.env.PROSOPO_DEFAULT_ENVIRONMENT) : types.EnvironmentTypesSchema.enum.development,
|
|
28
|
+
defaultNetwork: process.env.PROSOPO_DEFAULT_NETWORK ? types.NetworkNamesSchema.parse(process.env.PROSOPO_DEFAULT_NETWORK) : types.NetworkNamesSchema.enum.development,
|
|
29
29
|
userAccountAddress: "",
|
|
30
30
|
account: {
|
|
31
31
|
address: siteKey
|
|
32
32
|
},
|
|
33
|
-
serverUrl: process.env.
|
|
33
|
+
serverUrl: process.env.PROSOPO_SERVER_URL || "",
|
|
34
|
+
mongoAtlasUri: process.env._DEV_ONLY_WATCH_EVENTS === "true" || false
|
|
34
35
|
});
|
|
35
36
|
};
|
|
36
37
|
const getParentForm = (element) => element.closest("form");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/procaptcha-bundle",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.33",
|
|
4
4
|
"author": "PROSOPO LIMITED <info@prosopo.io>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"> 0.5%, last 2 versions, not dead"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@prosopo/procaptcha-react": "0.2.
|
|
40
|
-
"@prosopo/types": "0.2.
|
|
41
|
-
"@prosopo/util": "0.2.
|
|
39
|
+
"@prosopo/procaptcha-react": "0.2.33",
|
|
40
|
+
"@prosopo/types": "0.2.33",
|
|
41
|
+
"@prosopo/util": "0.2.33",
|
|
42
42
|
"react-dom": "^18.2.0"
|
|
43
43
|
},
|
|
44
44
|
"repository": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@originjs/vite-plugin-commonjs": "^1.0.3",
|
|
58
|
-
"@prosopo/config": "0.2.
|
|
58
|
+
"@prosopo/config": "0.2.33",
|
|
59
59
|
"@rollup/plugin-typescript": "^11.1.2",
|
|
60
60
|
"@vitejs/plugin-react": "^4.0.4",
|
|
61
61
|
"tslib": "2.6.2",
|