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

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,15 @@
1
1
  # @prosopo/react-procaptcha-integration-demo
2
2
 
3
+ ## 1.1.8
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/react-procaptcha-wrapper@1.1.8
11
+ - @prosopo/config@3.1.2
12
+
3
13
  ## 1.1.7
4
14
  ### Patch Changes
5
15
 
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prosopo/react-procaptcha-integration-demo",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "20",
@@ -18,20 +18,20 @@
18
18
  "scripts": {
19
19
  "build": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
20
20
  "build:cjs": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
21
- "typecheck": "tsc --build --declaration --emitDeclarationOnly",
21
+ "typecheck": "tsc --build --declaration --emitDeclarationOnly --force",
22
22
  "test": "echo no tests",
23
23
  "bundle": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.config.ts --mode $NODE_ENV",
24
24
  "dev": "NODE_ENV=${NODE_ENV:-development}; vite dev --port=9330 --mode=$NODE_ENV",
25
25
  "clean": "del-cli --verbose dist tsconfig.tsbuildinfo"
26
26
  },
27
27
  "dependencies": {
28
- "@prosopo/react-procaptcha-wrapper": "1.1.7",
28
+ "@prosopo/react-procaptcha-wrapper": "1.1.8",
29
29
  "react": "18.3.1",
30
30
  "react-dom": "18.3.1",
31
- "@prosopo/config": "3.1.1"
31
+ "@prosopo/config": "3.1.2"
32
32
  },
33
33
  "devDependencies": {
34
- "@prosopo/procaptcha-integration-build-config": "1.1.1",
34
+ "@prosopo/procaptcha-integration-build-config": "1.1.2",
35
35
  "@vitejs/plugin-react": "4.3.4",
36
36
  "del-cli": "6.0.0"
37
37
  },