@prosopo/procaptcha-frictionless 2.1.0 → 2.1.1
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { i18n } from "@prosopo/common";
|
|
3
2
|
import { isBot } from "@prosopo/detector";
|
|
3
|
+
import { i18n } from "@prosopo/locale-browser";
|
|
4
4
|
import { ProcaptchaPow } from "@prosopo/procaptcha-pow";
|
|
5
5
|
import { Procaptcha } from "@prosopo/procaptcha-react";
|
|
6
6
|
import { ProcaptchaPlaceholder } from "@prosopo/web-components";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcaptchaFrictionless.js","sourceRoot":"","sources":["../src/ProcaptchaFrictionless.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"ProcaptchaFrictionless.js","sourceRoot":"","sources":["../src/ProcaptchaFrictionless.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAc1C,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAKvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,eAAe,GAAyB,KAAK,IAAI,EAAE;IACxD,OAAO,MAAM,KAAK,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;QACpC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC;QACzB,OAAO,EAAE,GAAG,EAAE,CAAC;IAChB,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACtC,MAAM,EACN,SAAS,EACT,SAAS,GAAG,eAAe,GACE,EAAE,EAAE;IACjC,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CACzD,KAAC,qBAAqB,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAI,CAC/D,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,qBAAqB,GAAG,KAAK,IAAI,EAAE;YACxC,MAAM,MAAM,GAAG,MAAM,SAAS,EAAE,CAAC;YACjC,IAAI,MAAM,CAAC,GAAG,EAAE,CAAC;gBAChB,oBAAoB,CACnB,KAAC,UAAU,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAI,CACpD,CAAC;YACH,CAAC;iBAAM,CAAC;gBACP,oBAAoB,CACnB,KAAC,aAAa,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAI,CACvD,CAAC;YACH,CAAC;QACF,CAAC,CAAC;QAEF,qBAAqB,EAAE,CAAC;QAExB,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC;YACrB,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACtC,CAAC;IACF,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEpD,OAAO,iBAAiB,CAAC;AAC1B,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const common = require("@prosopo/common");
|
|
5
4
|
const detector = require("@prosopo/detector");
|
|
5
|
+
const localeBrowser = require("@prosopo/locale-browser");
|
|
6
6
|
const procaptchaPow = require("@prosopo/procaptcha-pow");
|
|
7
7
|
const procaptchaReact = require("@prosopo/procaptcha-react");
|
|
8
8
|
const webComponents = require("@prosopo/web-components");
|
|
@@ -36,7 +36,7 @@ const ProcaptchaFrictionless = ({
|
|
|
36
36
|
};
|
|
37
37
|
detectAndSetComponent();
|
|
38
38
|
if (config.language) {
|
|
39
|
-
|
|
39
|
+
localeBrowser.i18n.changeLanguage(config.language);
|
|
40
40
|
}
|
|
41
41
|
}, [config, callbacks, detectBot, config.language]);
|
|
42
42
|
return componentToRender;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/procaptcha-frictionless",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"author": "PROSOPO LIMITED <info@prosopo.io>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,15 +26,16 @@
|
|
|
26
26
|
},
|
|
27
27
|
"browserslist": ["> 0.5%, last 2 versions, not dead"],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@prosopo/detector": "2.1.
|
|
30
|
-
"@prosopo/
|
|
31
|
-
"@prosopo/procaptcha-
|
|
32
|
-
"@prosopo/
|
|
33
|
-
"@prosopo/
|
|
29
|
+
"@prosopo/detector": "2.1.1",
|
|
30
|
+
"@prosopo/locale-browser": "2.1.1",
|
|
31
|
+
"@prosopo/procaptcha-pow": "2.1.1",
|
|
32
|
+
"@prosopo/procaptcha-react": "2.1.1",
|
|
33
|
+
"@prosopo/types": "2.1.1",
|
|
34
|
+
"@prosopo/web-components": "2.1.1",
|
|
34
35
|
"react": "18.3.1"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"@prosopo/config": "2.1.
|
|
38
|
+
"@prosopo/config": "2.1.1",
|
|
38
39
|
"@vitest/coverage-v8": "2.1.1",
|
|
39
40
|
"concurrently": "9.0.1",
|
|
40
41
|
"npm-run-all": "4.1.5",
|