@prosopo/react-procaptcha-integration-demo 1.1.6 → 1.1.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/CHANGELOG.md +5 -0
- package/package.json +2 -2
- package/dist/cjs/app.cjs +0 -20
- package/dist/cjs/index.cjs +0 -3
- package/dist/cjs/integrationDemo.cjs +0 -25
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/react-procaptcha-integration-demo",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": "20",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"clean": "del-cli --verbose dist tsconfig.tsbuildinfo"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@prosopo/react-procaptcha-wrapper": "1.1.
|
|
28
|
+
"@prosopo/react-procaptcha-wrapper": "1.1.7",
|
|
29
29
|
"react": "18.3.1",
|
|
30
30
|
"react-dom": "18.3.1",
|
|
31
31
|
"@prosopo/config": "3.1.1"
|
package/dist/cjs/app.cjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const ReactDOM = require("react-dom/client");
|
|
5
|
-
const integrationDemo = require("./integrationDemo.cjs");
|
|
6
|
-
class App {
|
|
7
|
-
render() {
|
|
8
|
-
const rootElement = document.querySelector("#root");
|
|
9
|
-
if (rootElement) {
|
|
10
|
-
this.renderProcaptcha(rootElement);
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
throw new Error("root element is not found");
|
|
14
|
-
}
|
|
15
|
-
renderProcaptcha(rootElement) {
|
|
16
|
-
const reactRoot = ReactDOM.createRoot(rootElement);
|
|
17
|
-
reactRoot.render(/* @__PURE__ */ jsxRuntime.jsx(integrationDemo.IntegrationDemoComponent, {}));
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.App = App;
|
package/dist/cjs/index.cjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const reactProcaptchaWrapper = require("@prosopo/react-procaptcha-wrapper");
|
|
5
|
-
const IntegrationDemoComponent = () => {
|
|
6
|
-
const siteKey = "";
|
|
7
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8
|
-
reactProcaptchaWrapper.ProcaptchaComponent,
|
|
9
|
-
{
|
|
10
|
-
siteKey,
|
|
11
|
-
captchaType: "pow",
|
|
12
|
-
language: "en",
|
|
13
|
-
callback: (token) => {
|
|
14
|
-
console.log("verified", token);
|
|
15
|
-
},
|
|
16
|
-
htmlAttributes: {
|
|
17
|
-
className: "my-app__procaptcha",
|
|
18
|
-
style: {
|
|
19
|
-
maxWidth: "600px"
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
};
|
|
25
|
-
exports.IntegrationDemoComponent = IntegrationDemoComponent;
|