@prosopo/react-procaptcha-integration-demo 1.1.7 → 1.1.9

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 CHANGED
@@ -1,5 +1,32 @@
1
1
  # @prosopo/react-procaptcha-integration-demo
2
2
 
3
+ ## 1.1.9
4
+ ### Patch Changes
5
+
6
+ - 828066d: remove empty test npm scripts, add missing npm test scripts
7
+ - 91bbe87: configure typecheck before bundle for vue packages
8
+ - 91bbe87: make typecheck script always recompile
9
+ - 346e092: NODE_ENV default to "development"
10
+ - 5d36e05: remove tsc --force
11
+ - Updated dependencies [828066d]
12
+ - Updated dependencies [91bbe87]
13
+ - Updated dependencies [3ef4fd2]
14
+ - Updated dependencies [91bbe87]
15
+ - Updated dependencies [346e092]
16
+ - Updated dependencies [5d36e05]
17
+ - @prosopo/react-procaptcha-wrapper@1.1.9
18
+ - @prosopo/config@3.1.3
19
+
20
+ ## 1.1.8
21
+ ### Patch Changes
22
+
23
+ - eb71691: configure typecheck before bundle for vue packages
24
+ - eb71691: make typecheck script always recompile
25
+ - Updated dependencies [eb71691]
26
+ - Updated dependencies [eb71691]
27
+ - @prosopo/react-procaptcha-wrapper@1.1.8
28
+ - @prosopo/config@3.1.2
29
+
3
30
  ## 1.1.7
4
31
  ### Patch Changes
5
32
 
package/dist/app.js ADDED
@@ -0,0 +1,20 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import ReactDOM from "react-dom/client";
3
+ import { IntegrationDemoComponent } from "./integrationDemo.js";
4
+ class App {
5
+ render() {
6
+ const rootElement = document.querySelector("#root");
7
+ if (rootElement) {
8
+ this.renderProcaptcha(rootElement);
9
+ return;
10
+ }
11
+ throw new Error("root element is not found");
12
+ }
13
+ renderProcaptcha(rootElement) {
14
+ const reactRoot = ReactDOM.createRoot(rootElement);
15
+ reactRoot.render(/* @__PURE__ */ jsx(IntegrationDemoComponent, {}));
16
+ }
17
+ }
18
+ export {
19
+ App
20
+ };
@@ -0,0 +1,20 @@
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;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const app = require("./app.cjs");
3
+ new app.App().render();
@@ -0,0 +1,25 @@
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;