@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.
@@ -0,0 +1,25 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { ProcaptchaComponent } from "@prosopo/react-procaptcha-wrapper";
3
+ const IntegrationDemoComponent = () => {
4
+ const siteKey = "";
5
+ return /* @__PURE__ */ jsx(
6
+ ProcaptchaComponent,
7
+ {
8
+ siteKey,
9
+ captchaType: "pow",
10
+ language: "en",
11
+ callback: (token) => {
12
+ console.log("verified", token);
13
+ },
14
+ htmlAttributes: {
15
+ className: "my-app__procaptcha",
16
+ style: {
17
+ maxWidth: "600px"
18
+ }
19
+ }
20
+ }
21
+ );
22
+ };
23
+ export {
24
+ IntegrationDemoComponent
25
+ };
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.9",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": "20",
@@ -16,22 +16,21 @@
16
16
  }
17
17
  },
18
18
  "scripts": {
19
- "build": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
20
- "build:cjs": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
19
+ "build": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
20
+ "build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
21
21
  "typecheck": "tsc --build --declaration --emitDeclarationOnly",
22
- "test": "echo no tests",
23
- "bundle": "NODE_ENV=${NODE_ENV:-production}; vite build --config vite.config.ts --mode $NODE_ENV",
22
+ "bundle": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.config.ts --mode $NODE_ENV",
24
23
  "dev": "NODE_ENV=${NODE_ENV:-development}; vite dev --port=9330 --mode=$NODE_ENV",
25
24
  "clean": "del-cli --verbose dist tsconfig.tsbuildinfo"
26
25
  },
27
26
  "dependencies": {
28
- "@prosopo/react-procaptcha-wrapper": "1.1.7",
27
+ "@prosopo/react-procaptcha-wrapper": "1.1.9",
29
28
  "react": "18.3.1",
30
29
  "react-dom": "18.3.1",
31
- "@prosopo/config": "3.1.1"
30
+ "@prosopo/config": "3.1.3"
32
31
  },
33
32
  "devDependencies": {
34
- "@prosopo/procaptcha-integration-build-config": "1.1.1",
33
+ "@prosopo/procaptcha-integration-build-config": "1.1.3",
35
34
  "@vitejs/plugin-react": "4.3.4",
36
35
  "del-cli": "6.0.0"
37
36
  },